Ejemplo n.º 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();
  }
Ejemplo n.º 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());
  }
Ejemplo n.º 3
0
 private void init() {
   signaturesStoreURL = configuration.getSignatureStoreURL();
   documentStoreURL = configuration.getDocumentsStoreURL();
 }