/* (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(); }
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()); }
private void init() { signaturesStoreURL = configuration.getSignatureStoreURL(); documentStoreURL = configuration.getDocumentsStoreURL(); }