com.sun.xml.ws.security.trust.util
Class WSTrustUtil

java.lang.Object
  extended by com.sun.xml.ws.security.trust.util.WSTrustUtil

public class WSTrustUtil
extends java.lang.Object


Method Summary
static com.sun.xml.wss.saml.Assertion addSamlAttributes(com.sun.xml.wss.saml.Assertion assertion, java.util.Map<javax.xml.namespace.QName,java.util.List<java.lang.String>> claimedAttrs)
           
static com.sun.xml.ws.policy.impl.bindings.AppliesTo createAppliesTo(java.lang.String appliesTo)
           
static java.lang.String createFriendlyPPID(java.lang.String displayValue)
           
static Lifetime createLifetime(long currentTime, long lifespan, WSTrustVersion wstVer)
           
static com.sun.xml.ws.security.SecurityContextToken createSecurityContextToken(WSSCElementFactory eleFac)
           
static com.sun.xml.ws.security.SecurityContextToken createSecurityContextToken(WSSCElementFactory eleFac, java.lang.String identifier)
           
static com.sun.xml.ws.security.SecurityContextToken createSecurityContextToken(WSTrustElementFactory wsscEleFac)
           
static com.sun.xml.ws.security.SecurityContextToken createSecurityContextToken(WSTrustElementFactory wsscEleFac, java.lang.String identifier)
           
static SecurityTokenReference createSecurityTokenReference(java.lang.String id, java.lang.String valueType)
           
static javax.xml.soap.SOAPFault createSOAP11Fault(WSTrustSOAPFaultException sfex)
          create and return a SOAP 1.1 Fault corresponding to this exception
static javax.xml.soap.SOAPFault createSOAP12Fault(WSTrustSOAPFaultException sfex)
          create and return a SOAP 1.2 Fault corresponding to this exception
static java.lang.String elemToString(BaseSTSRequest rst, WSTrustVersion wstVer)
           
static java.lang.String elemToString(BaseSTSResponse rstr, WSTrustVersion wstVer)
           
static com.sun.org.apache.xml.internal.security.encryption.EncryptedKey encryptKey(org.w3c.dom.Document doc, byte[] encryptedKey, java.security.cert.X509Certificate cert, java.lang.String keyWrapAlgorithm)
           
static byte[] generateRandomSecret(int keySize)
           
static java.lang.String getAppliesToURI(com.sun.xml.ws.policy.impl.bindings.AppliesTo appliesTo)
           
static long getCurrentTimeWithOffset()
           
static java.util.List<java.lang.Object> parseAppliesTo(com.sun.xml.ws.policy.impl.bindings.AppliesTo appliesTo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSOAP11Fault

public static javax.xml.soap.SOAPFault createSOAP11Fault(WSTrustSOAPFaultException sfex)
create and return a SOAP 1.1 Fault corresponding to this exception


createSOAP12Fault

public static javax.xml.soap.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 com.sun.xml.ws.security.SecurityContextToken createSecurityContextToken(WSTrustElementFactory wsscEleFac)
                                                                               throws WSSecureConversationException
Throws:
WSSecureConversationException

createSecurityContextToken

public static com.sun.xml.ws.security.SecurityContextToken createSecurityContextToken(WSSCElementFactory eleFac)
                                                                               throws WSSecureConversationException
Throws:
WSSecureConversationException

createSecurityContextToken

public static com.sun.xml.ws.security.SecurityContextToken createSecurityContextToken(WSTrustElementFactory wsscEleFac,
                                                                                      java.lang.String identifier)
                                                                               throws WSSecureConversationException
Throws:
WSSecureConversationException

createSecurityContextToken

public static com.sun.xml.ws.security.SecurityContextToken createSecurityContextToken(WSSCElementFactory eleFac,
                                                                                      java.lang.String identifier)
                                                                               throws WSSecureConversationException
Throws:
WSSecureConversationException

createSecurityTokenReference

public static SecurityTokenReference createSecurityTokenReference(java.lang.String id,
                                                                  java.lang.String valueType)

createAppliesTo

public static com.sun.xml.ws.policy.impl.bindings.AppliesTo createAppliesTo(java.lang.String appliesTo)

parseAppliesTo

public static java.util.List<java.lang.Object> parseAppliesTo(com.sun.xml.ws.policy.impl.bindings.AppliesTo appliesTo)

getAppliesToURI

public static java.lang.String getAppliesToURI(com.sun.xml.ws.policy.impl.bindings.AppliesTo appliesTo)

createFriendlyPPID

public static java.lang.String createFriendlyPPID(java.lang.String displayValue)

elemToString

public static java.lang.String elemToString(BaseSTSResponse rstr,
                                            WSTrustVersion wstVer)

elemToString

public static java.lang.String elemToString(BaseSTSRequest rst,
                                            WSTrustVersion wstVer)

getCurrentTimeWithOffset

public static long getCurrentTimeWithOffset()

createLifetime

public static Lifetime createLifetime(long currentTime,
                                      long lifespan,
                                      WSTrustVersion wstVer)

encryptKey

public static com.sun.org.apache.xml.internal.security.encryption.EncryptedKey encryptKey(org.w3c.dom.Document doc,
                                                                                          byte[] encryptedKey,
                                                                                          java.security.cert.X509Certificate cert,
                                                                                          java.lang.String keyWrapAlgorithm)
                                                                                   throws java.lang.Exception
Throws:
java.lang.Exception

addSamlAttributes

public static com.sun.xml.wss.saml.Assertion addSamlAttributes(com.sun.xml.wss.saml.Assertion assertion,
                                                               java.util.Map<javax.xml.namespace.QName,java.util.List<java.lang.String>> claimedAttrs)
                                                        throws WSTrustException
Throws:
WSTrustException