Class TokenProviderUtils
java.lang.Object
org.apache.cxf.sts.token.provider.TokenProviderUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic ElementencryptToken(Element element, String id, STSPropertiesMBean stsProperties, EncryptionProperties encryptionProperties, KeyRequirements keyRequirements, Map<String, Object> messageContext) Encrypt a Token element using the given arguments.static StringextractAddressFromParticipantsEPR(Object participants) Extract an address from a Participants EPR DOM elementstatic X509CertificategetReqSigCert(Map<String, Object> messageContext) Get the X509Certificate associated with the signature that was received.
-
Method Details
-
extractAddressFromParticipantsEPR
Extract an address from a Participants EPR DOM element -
encryptToken
public static Element encryptToken(Element element, String id, STSPropertiesMBean stsProperties, EncryptionProperties encryptionProperties, KeyRequirements keyRequirements, Map<String, Object> messageContext) throws org.apache.wss4j.common.ext.WSSecurityExceptionEncrypt a Token element using the given arguments.- Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
getReqSigCert
Get the X509Certificate associated with the signature that was received. This cert is to be used for encrypting the issued token.
-