Class WSSElementFactory
- java.lang.Object
-
- com.sun.xml.ws.security.opt.impl.util.WSSElementFactory
-
public class WSSElementFactory extends Object
- Author:
- K.Venugopal@sun.com
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectFactoryeoFactory
-
Constructor Summary
Constructors Constructor Description WSSElementFactory(com.sun.xml.ws.api.SOAPVersion soapVersion)Creates a new instance of WSSKeyInfoFactory
-
Method Summary
-
-
-
Field Detail
-
eoFactory
public static final ObjectFactory eoFactory
-
-
Method Detail
-
createSecurityHeader
public SecurityHeader createSecurityHeader()
-
createSecurityHeader
public SecurityHeader createSecurityHeader(int headerLayout, String soapVersion, boolean mustUnderstandValue)
-
createBinarySecurityToken
public BinarySecurityToken createBinarySecurityToken(String id, String valueType, String encodingType, byte[] token)
Create a BinarySecurity Token Header element.
-
createBinarySecurityToken
public BinarySecurityToken createBinarySecurityToken(String id, byte[] cer)
Create a BinarySecurity Token Header element.
-
createKerberosBinarySecurityToken
public BinarySecurityToken createKerberosBinarySecurityToken(String id, byte[] token)
Create a Kerberos Binary Security Token
-
createSecurityTokenReference
public SecurityTokenReference createSecurityTokenReference(Reference reference)
Create a SecurityTokenReference
-
createSecurityTokenReference
public SecurityTokenReference createSecurityTokenReference()
-
createDirectReference
public DirectReference createDirectReference()
Creates a DirectReference element
-
createKeyIdentifier
public KeyIdentifier createKeyIdentifier()
-
createX509DataWithIssuerSerial
public X509Data createX509DataWithIssuerSerial(X509IssuerSerial xis)
-
createGSHeaderElement
public GSHeaderElement createGSHeaderElement(jakarta.xml.bind.JAXBElement el)
-
createGSHeaderElement
public GSHeaderElement createGSHeaderElement(Object obj)
-
createSecurityContextToken
public SecurityContextToken createSecurityContextToken(URI identifier, String instance, String wsuId)
-
createSecurityContextToken
public SecurityContextToken createSecurityContextToken(SecurityContextTokenType sTokenType, String wsuId)
-
createX509IssuerSerial
public X509IssuerSerial createX509IssuerSerial(String issuerName, BigInteger serialNumber)
-
createKeyInfo
public KeyInfo createKeyInfo(SecurityTokenReference str)
-
createEncryptedData
public EncryptedData createEncryptedData(String id, Data data, String dataAlgo, KeyInfoType keyInfo, Key key, boolean contentOnly)
-
createEncryptedData
public EncryptedData createEncryptedData(String id, com.sun.xml.ws.api.message.Attachment attachment, String dataAlgo, KeyInfoType keyInfo, Key key, EncryptionTarget target)
-
createEncryptedHeader
public EncryptedHeader createEncryptedHeader(String ehId, String edId, Data data, String dataAlgo, KeyInfoType keyInfo, Key key, boolean contentOnly)
-
createEncryptedKey
public EncryptedKey createEncryptedKey(String id, String keyEncAlgo, KeyInfo keyInfo, Key dkEK, Key dataEncKey) throws XWSSecurityException
- Throws:
XWSSecurityException
-
createDataReference
public jakarta.xml.bind.JAXBElement<ReferenceType> createDataReference(SecurityElement se)
-
createKeyInfoType
public KeyInfoType createKeyInfoType(String keyAlgo, String refType, String refId)
-
createDerivedKey
public DerivedKey createDerivedKey(String id, String algo, byte[] nonce, long offset, long length, String label, SecurityTokenReference str, String spVersion)
-
createDerivedKey
public DerivedKey createDerivedKey(String id, String algo, byte[] nonce, long offset, long length, String label, SecurityTokenReferenceType str, String spVersion)
-
createDerivedKey
public DerivedKey createDerivedKey(String id, String algo, byte[] nonce, long offset, long length, String label, SecurityTokenReferenceType str, String refId, String spVersion)
-
-