public void prependSCTElementToHeader() throws WSSecurityException { Element secHeaderElement = securityHeader.getSecurityHeaderElement(); WSSecurityUtil.prependChildElement(secHeaderElement, sct.getElement()); }
public WSSecurityEngineResult(int act, SecurityContextToken sct) { put(TAG_ACTION, act); put(TAG_SECURITY_CONTEXT_TOKEN, sct); put(TAG_VALIDATED_TOKEN, Boolean.FALSE); put(TAG_TOKEN_ELEMENT, sct.getElement()); }
engineResult.get(WSSecurityEngineResult.TAG_SECURITY_CONTEXT_TOKEN); if (referenceURI.equals(sct.getIdentifier())) { return sct.getElement();
engineResult.get(WSSecurityEngineResult.TAG_SECURITY_CONTEXT_TOKEN); if (referenceURI.equals(sct.getIdentifier())) { return sct.getElement();
tokenIdToRenew, instance); sct.setID(WSSConfig.getNewInstance().getIdAllocator() .createSecureId("sctId-", sct.getElement())); } else { sct = new SecurityContextToken( NegotiationUtils.getWSCVersion(tokenType), writer.getDocument()); sct.setID(WSSConfig.getNewInstance().getIdAllocator() .createSecureId("sctId-", sct.getElement())); token.setToken(sct.getElement()); token.setTokenType(sct.getTokenType()); writer.getCurrentNode().appendChild(sct.getElement()); writer.writeEndElement();
tokenIdToRenew, instance); sct.setID(WSSConfig.getNewInstance().getIdAllocator() .createSecureId("sctId-", sct.getElement())); } else { sct = new SecurityContextToken( NegotiationUtils.getWSCVersion(tokenType), writer.getDocument()); sct.setID(WSSConfig.getNewInstance().getIdAllocator() .createSecureId("sctId-", sct.getElement())); token.setToken(sct.getElement()); token.setTokenType(sct.getTokenType()); writer.getCurrentNode().appendChild(sct.getElement()); writer.writeEndElement();
token.setToken(sct.getElement()); token.setTokenType(sct.getTokenType()); writer.getCurrentNode().appendChild(sct.getElement()); writer.writeEndElement();
token.setToken(sct.getElement()); token.setTokenType(sct.getTokenType()); writer.getCurrentNode().appendChild(sct.getElement()); writer.writeEndElement();
Element el = TokenProviderUtils.encryptToken(sct.getElement(), response.getTokenId(), tokenParameters.getStsProperties(), tokenParameters.getEncryptionProperties(), response.setToken(el); } else { response.setToken(sct.getElement());
Element el = TokenProviderUtils.encryptToken(sct.getElement(), response.getTokenId(), tokenParameters.getStsProperties(), tokenParameters.getEncryptionProperties(), response.setToken(el); } else { response.setToken(sct.getElement());
if (secret != null) { token = new SecurityToken(tok.getIdentifier()); token.setToken(tok.getElement()); token.setSecret(secret); token.setTokenType(tok.getTokenType());
return sct.getElement();
hash = credential.getBinarySecurityToken().hashCode(); } else if (credential.getSecurityContextToken() != null) { tokenElement = credential.getSecurityContextToken().getElement(); hash = credential.getSecurityContextToken().hashCode();
if (secret != null) { token = new SecurityToken(tok.getIdentifier()); token.setToken(tok.getElement()); token.setSecret(secret); token.setTokenType(tok.getTokenType());
hash = credential.getBinarySecurityToken().hashCode(); } else if (credential.getSecurityContextToken() != null) { tokenElement = credential.getSecurityContextToken().getElement(); hash = credential.getSecurityContextToken().hashCode();