/** * Get the created timestamp. * * @return the data from the created time element. */ public String getCreated() { return nodeString(elementCreated); }
/** * Get the nonce. * * @return the data from the nonce element. */ public String getNonce() { return nodeString(elementNonce); }
/** * Get the nonce. * * @return the data from the nonce element. */ public String getNonce() { return nodeString(elementNonce); }
/** * Get the user name. * * @return the data from the user name element. */ public String getName() { return nodeString(elementUsername); }
/** * Get the user name. * * @return the data from the user name element. */ public String getName() { return nodeString(elementUsername); }
/** * Get the created timestamp. * * @return the data from the created time element. */ public String getCreated() { return nodeString(elementCreated); }
/** * Gets the password string. This is the password as it is in the password * element of a username token. Thus it can be either plain text or the * password digest value. * * @return the password string or <code>null</code> if no such node exists. */ public String getPassword() { String password = nodeString(elementPassword); // See WSS-219 if (password == null && elementPassword != null) { return ""; } return password; }
/** * Gets the password string. This is the password as it is in the password * element of a username token. Thus it can be either plain text or the * password digest value. * * @return the password string or <code>null</code> if no such node exists. */ public String getPassword() { String password = nodeString(elementPassword); // See WSS-219 if (password == null && elementPassword != null) { return ""; } return password; }
/** * Get the Iteration value of this UsernameToken. * * @return Returns the Iteration value. If no Iteration was specified in the * username token the default value according to the specification * is returned. */ public int getIteration() { String iter = nodeString(elementIteration); if (iter != null) { return Integer.parseInt(iter); } return DEFAULT_ITERATION; }
/** * Get the Iteration value of this UsernameToken. * * @return Returns the Iteration value. If no Iteration was specified in the * username token the default value according to the specification * is returned. */ public int getIteration() { String iter = nodeString(elementIteration); if (iter != null) { return Integer.parseInt(iter); } return DEFAULT_ITERATION; }
/** * Get the Salt value of this UsernameToken. * * @return Returns the binary Salt value or <code>null</code> if no Salt * value is available in the username token. * @throws WSSecurityException */ public byte[] getSalt() throws WSSecurityException { String salt = nodeString(elementSalt); if (salt != null) { return Base64.decode(salt); } return null; }
/** * Get the Salt value of this UsernameToken. * * @return Returns the binary Salt value or <code>null</code> if no Salt * value is available in the username token. * @throws WSSecurityException */ public byte[] getSalt() throws WSSecurityException { String salt = nodeString(elementSalt); if (salt != null) { return Base64.decode(salt); } return null; }
String iter = nodeString(elementIteration); if (iter == null || Integer.parseInt(iter) < 1000) { bspCompliantDerivedKey = false;
String iter = nodeString(elementIteration); if (iter == null || Integer.parseInt(iter) < 1000) { bspCompliantDerivedKey = false;
String iter = nodeString(elementIteration); if (iter != null) { int iterInt = Integer.parseInt(iter);
String iter = nodeString(elementIteration); if (iter != null) { int iterInt = Integer.parseInt(iter);