com.sun.xml.ws.security.trust.util
Class WSTrustUtil
java.lang.Object
com.sun.xml.ws.security.trust.util.WSTrustUtil
public class WSTrustUtil
- extends Object
- Author:
- ws-trust-implementation-team
|
Method Summary |
static Assertion |
addSamlAttributes(Assertion assertion,
Map<QName,List<String>> claimedAttrs)
|
static AppliesTo |
createAppliesTo(String appliesTo)
|
static String |
createFriendlyPPID(String displayValue)
|
static Lifetime |
createLifetime(long currentTime,
long lifespan,
WSTrustVersion wstVer)
|
static SecurityContextToken |
createSecurityContextToken(WSSCElementFactory eleFac)
|
static SecurityContextToken |
createSecurityContextToken(WSSCElementFactory eleFac,
String identifier)
|
static SecurityContextToken |
createSecurityContextToken(WSTrustElementFactory wsscEleFac)
|
static SecurityContextToken |
createSecurityContextToken(WSTrustElementFactory wsscEleFac,
String identifier)
|
static SecurityTokenReference |
createSecurityTokenReference(String id,
String valueType)
|
static SOAPFault |
createSOAP11Fault(WSTrustSOAPFaultException sfex)
create and return a SOAP 1.1 Fault corresponding to this exception |
static SOAPFault |
createSOAP12Fault(WSTrustSOAPFaultException sfex)
create and return a SOAP 1.2 Fault corresponding to this exception |
static String |
elemToString(BaseSTSRequest rst,
WSTrustVersion wstVer)
|
static String |
elemToString(BaseSTSResponse rstr,
WSTrustVersion wstVer)
|
static com.sun.org.apache.xml.internal.security.encryption.EncryptedKey |
encryptKey(Document doc,
byte[] encryptedKey,
X509Certificate cert,
String keyWrapAlgorithm)
|
static byte[] |
generateRandomSecret(int keySize)
|
static String |
getAppliesToURI(AppliesTo appliesTo)
|
static long |
getCurrentTimeWithOffset()
|
static long |
getLifeSpan(Lifetime lifetime)
|
static Document |
newDocument()
|
static List<Object> |
parseAppliesTo(AppliesTo appliesTo)
|
static Date |
parseAttributedDateTime(AttributedDateTime time)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createSOAP11Fault
public static SOAPFault createSOAP11Fault(WSTrustSOAPFaultException sfex)
- create and return a SOAP 1.1 Fault corresponding to this exception
createSOAP12Fault
public static SOAPFault createSOAP12Fault(WSTrustSOAPFaultException sfex)
- 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
public static SecurityTokenReference createSecurityTokenReference(String id,
String valueType)
createAppliesTo
public static AppliesTo createAppliesTo(String appliesTo)
parseAppliesTo
public static List<Object> parseAppliesTo(AppliesTo appliesTo)
getAppliesToURI
public static String getAppliesToURI(AppliesTo appliesTo)
createFriendlyPPID
public static String createFriendlyPPID(String displayValue)
elemToString
public static String elemToString(BaseSTSResponse rstr,
WSTrustVersion wstVer)
elemToString
public static String elemToString(BaseSTSRequest rst,
WSTrustVersion wstVer)
getCurrentTimeWithOffset
public static long getCurrentTimeWithOffset()
createLifetime
public static Lifetime createLifetime(long currentTime,
long lifespan,
WSTrustVersion wstVer)
getLifeSpan
public static long getLifeSpan(Lifetime lifetime)
parseAttributedDateTime
public static Date parseAttributedDateTime(AttributedDateTime time)
encryptKey
public static com.sun.org.apache.xml.internal.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
public static Document newDocument()
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.