示例#1
0
  /* (non-Javadoc)
   * @see org.topon.configuration.identity.IdentityInterface#init()
   */
  public void init() {
    this.keyStorePath = configuration.getKeystore();
    this.alias = configuration.getAlias();
    this.keyStorePassword = configuration.getPassword();

    this.keystore = loadKeyStore();
    this.keyStorePasswordChar = keyStorePassword.toCharArray();
    this.keyPair = loadAllKeysFromKeystore();
  }
示例#2
0
  public static void main(String[] args) {
    Configuration config = Configuration.getInstance();
    IdentityInterface ident = IdentityFactory.createIdentity(config);
    URLClient client = new URLClient(ident);

    Vector vector = client.getDocumentsToSignFromServer();
    System.out.println(((DocumentModel) vector.get(2)).getDescription());
  }
示例#3
0
 private void init() {
   signaturesStoreURL = configuration.getSignatureStoreURL();
   documentStoreURL = configuration.getDocumentsStoreURL();
 }