DerivationAlgorithm algo = AlgoFactory.getInstance(getAlgorithm()); byte[] labelBytes = null; String label = getLabel();
DerivationAlgorithm algo = AlgoFactory.getInstance(getAlgorithm()); byte[] labelBytes = null; String label = getLabel();
@Override public int hashCode() { int result = 17; String algorithm = getAlgorithm(); if (algorithm != null) { result = 31 * result + algorithm.hashCode();
@Override public int hashCode() { int result = 17; String algorithm = getAlgorithm(); if (algorithm != null) { result = 31 * result + algorithm.hashCode();
/** * Create a WSDerivedKeyTokenPrincipal from this DerivedKeyToken object */ public Principal createPrincipal() throws WSSecurityException { WSDerivedKeyTokenPrincipal principal = new WSDerivedKeyTokenPrincipal(getID()); principal.setNonce(getNonce()); principal.setLabel(getLabel()); principal.setLength(getLength()); principal.setOffset(getOffset()); principal.setAlgorithm(getAlgorithm()); String basetokenId = null; SecurityTokenReference securityTokenReference = getSecurityTokenReference(); if (securityTokenReference.containsReference()) { basetokenId = securityTokenReference.getReference().getURI(); if (basetokenId.charAt(0) == '#') { basetokenId = basetokenId.substring(1); } } else { // KeyIdentifier basetokenId = securityTokenReference.getKeyIdentifierValue(); } principal.setBasetokenId(basetokenId); return principal; }
if (!compare(getAlgorithm(), token.getAlgorithm())) { return false;
/** * Create a WSDerivedKeyTokenPrincipal from this DerivedKeyToken object */ public Principal createPrincipal() throws WSSecurityException { WSDerivedKeyTokenPrincipal principal = new WSDerivedKeyTokenPrincipal(getID()); principal.setNonce(getNonce()); principal.setLabel(getLabel()); principal.setLength(getLength()); principal.setOffset(getOffset()); principal.setAlgorithm(getAlgorithm()); String basetokenId = null; SecurityTokenReference securityTokenReference = getSecurityTokenReference(); if (securityTokenReference.containsReference()) { basetokenId = securityTokenReference.getReference().getURI(); if (basetokenId.charAt(0) == '#') { basetokenId = basetokenId.substring(1); } } else { // KeyIdentifier basetokenId = securityTokenReference.getKeyIdentifierValue(); } principal.setBasetokenId(basetokenId); return principal; }
if (!compare(getAlgorithm(), token.getAlgorithm())) { return false;
AlgorithmSuiteValidator(algorithmSuite); algorithmSuiteValidator.checkDerivedKeyAlgorithm( dkt.getAlgorithm() );
AlgorithmSuiteValidator(algorithmSuite); algorithmSuiteValidator.checkDerivedKeyAlgorithm( dkt.getAlgorithm() );