Class WSSElementFactory
java.lang.Object
com.sun.xml.ws.security.opt.impl.util.WSSElementFactory
- Author:
- K.Venugopal@sun.com
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWSSElementFactory(SOAPVersion soapVersion) Creates a new instance of WSSKeyInfoFactory -
Method Summary
Modifier and TypeMethodDescriptionprotected StringconvertAlgURIToTransformation(String algorithmURI) createBinarySecurityToken(String id, byte[] cer) Create a BinarySecurity Token Header element.createBinarySecurityToken(String id, String valueType, String encodingType, byte[] token) Create a BinarySecurity Token Header element.javax.xml.bind.JAXBElement<ReferenceType>createDerivedKey(String id, String algo, byte[] nonce, long offset, long length, String label, SecurityTokenReference str, String spVersion) createDerivedKey(String id, String algo, byte[] nonce, long offset, long length, String label, SecurityTokenReferenceType str, String spVersion) createDerivedKey(String id, String algo, byte[] nonce, long offset, long length, String label, SecurityTokenReferenceType str, String refId, String spVersion) Creates a DirectReference elementcreateEncryptedData(String id, Attachment attachment, String dataAlgo, KeyInfoType keyInfo, Key key, EncryptionTarget target) createEncryptedData(String id, Data data, String dataAlgo, KeyInfoType keyInfo, Key key, boolean contentOnly) createEncryptedHeader(String ehId, String edId, Data data, String dataAlgo, KeyInfoType keyInfo, Key key, boolean contentOnly) createGSHeaderElement(javax.xml.bind.JAXBElement el) createKerberosBinarySecurityToken(String id, byte[] token) Create a Kerberos Binary Security TokencreateKeyInfo(KeyName name) createKeyInfo(KeyValue keyValue) createKeyInfoType(String keyAlgo, String refType, String refId) createSecurityContextToken(SecurityContextTokenType sTokenType, String wsuId) createSecurityContextToken(URI identifier, String instance, String wsuId) createSecurityHeader(int headerLayout, String soapVersion, boolean mustUnderstandValue) createSecurityTokenReference(Reference reference) Create a SecurityTokenReferencecreateX509IssuerSerial(String issuerName, BigInteger serialNumber)
-
Field Details
-
eoFactory
-
-
Constructor Details
-
WSSElementFactory
Creates a new instance of WSSKeyInfoFactory
-
-
Method Details
-
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
Create a BinarySecurity Token Header element. -
createKerberosBinarySecurityToken
Create a Kerberos Binary Security Token -
createSecurityTokenReference
Create a SecurityTokenReference -
createSecurityTokenReference
-
createDirectReference
Creates a DirectReference element -
createKeyIdentifier
-
createX509DataWithIssuerSerial
-
createGSHeaderElement
-
createGSHeaderElement
-
createSecurityContextToken
public SecurityContextToken createSecurityContextToken(URI identifier, String instance, String wsuId) -
createSecurityContextToken
public SecurityContextToken createSecurityContextToken(SecurityContextTokenType sTokenType, String wsuId) -
createX509IssuerSerial
-
createKeyInfo
-
createKeyInfo
-
createKeyInfo
-
createEncryptedData
public EncryptedData createEncryptedData(String id, Data data, String dataAlgo, KeyInfoType keyInfo, Key key, boolean contentOnly) -
createEncryptedData
public EncryptedData createEncryptedData(String id, 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
-
createKeyInfoType
-
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) -
convertAlgURIToTransformation
-