Class WSTrustUtil
java.lang.Object
com.sun.xml.ws.security.trust.util.WSTrustUtil
- Author:
- ws-trust-implementation-team
-
Method Summary
Modifier and TypeMethodDescriptionstatic Assertionstatic AppliesTocreateAppliesTo(String appliesTo) static StringcreateFriendlyPPID(String displayValue) static LifetimecreateLifetime(long currentTime, long lifespan, WSTrustVersion wstVer) static SecurityContextTokenstatic SecurityContextTokencreateSecurityContextToken(WSSCElementFactory eleFac, String identifier) static SecurityContextTokencreateSecurityContextToken(WSTrustElementFactory wsscEleFac) static SecurityContextTokencreateSecurityContextToken(WSTrustElementFactory wsscEleFac, String identifier) static SecurityTokenReferencecreateSecurityTokenReference(String id, String valueType) static javax.xml.soap.SOAPFaultcreate and return a SOAP 1.1 Fault corresponding to this exceptionstatic javax.xml.soap.SOAPFaultcreate and return a SOAP 1.2 Fault corresponding to this exceptionstatic StringelemToString(BaseSTSRequest rst, WSTrustVersion wstVer) static StringelemToString(BaseSTSResponse rstr, WSTrustVersion wstVer) static org.apache.xml.security.encryption.EncryptedKeyencryptKey(Document doc, byte[] encryptedKey, X509Certificate cert, String keyWrapAlgorithm) static byte[]generateRandomSecret(int keySize) static StringgetAppliesToURI(AppliesTo appliesTo) static longstatic longgetLifeSpan(Lifetime lifetime) static DocumentparseAppliesTo(AppliesTo appliesTo) static Date
-
Method Details
-
createSOAP11Fault
create and return a SOAP 1.1 Fault corresponding to this exception -
createSOAP12Fault
create and return a SOAP 1.2 Fault corresponding to this exception -
generateRandomSecret
public static byte[] generateRandomSecret(int keySize) -
createSecurityContextToken
public static SecurityContextToken createSecurityContextToken(WSTrustElementFactory wsscEleFac) throws WSSecureConversationException - Throws:
WSSecureConversationException
-
createSecurityContextToken
public static SecurityContextToken createSecurityContextToken(WSSCElementFactory eleFac) throws WSSecureConversationException - Throws:
WSSecureConversationException
-
createSecurityContextToken
public static SecurityContextToken createSecurityContextToken(WSTrustElementFactory wsscEleFac, String identifier) throws WSSecureConversationException - Throws:
WSSecureConversationException
-
createSecurityContextToken
public static SecurityContextToken createSecurityContextToken(WSSCElementFactory eleFac, String identifier) throws WSSecureConversationException - Throws:
WSSecureConversationException
-
createSecurityTokenReference
-
createAppliesTo
-
parseAppliesTo
-
getAppliesToURI
-
createFriendlyPPID
-
elemToString
-
elemToString
-
getCurrentTimeWithOffset
public static long getCurrentTimeWithOffset() -
createLifetime
-
getLifeSpan
-
parseAttributedDateTime
-
encryptKey
public static org.apache.xml.security.encryption.EncryptedKey encryptKey(Document doc, byte[] encryptedKey, X509Certificate cert, String keyWrapAlgorithm) throws Exception - Throws:
Exception
-
addSamlAttributes
public static Assertion addSamlAttributes(Assertion assertion, Map<QName, List<String>> claimedAttrs) throws WSTrustException- Throws:
WSTrustException
-
newDocument
-