Class TokenProviderUtils
- java.lang.Object
-
- org.apache.cxf.sts.token.provider.TokenProviderUtils
-
public final class TokenProviderUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
extractAddressFromParticipantsEPR
public static String extractAddressFromParticipantsEPR(Object participants)
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.WSSecurityException
Encrypt a Token element using the given arguments.- Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
getReqSigCert
public static X509Certificate getReqSigCert(Map<String,Object> messageContext)
Get the X509Certificate associated with the signature that was received. This cert is to be used for encrypting the issued token.
-
-