Class TokenProviderUtils

java.lang.Object
org.apache.cxf.sts.token.provider.TokenProviderUtils

public final class TokenProviderUtils extends Object
  • Method Details

    • 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.