com.sun.xml.ws.security.opt.impl.util
Class WSSElementFactory

java.lang.Object
  extended by com.sun.xml.ws.security.opt.impl.util.WSSElementFactory

public class WSSElementFactory
extends Object

Author:
K.Venugopal@sun.com

Field Summary
static ObjectFactory eoFactory
           
 
Constructor Summary
WSSElementFactory(SOAPVersion soapVersion)
          Creates a new instance of WSSKeyInfoFactory
 
Method Summary
protected  String convertAlgURIToTransformation(String algorithmURI)
           
 BinarySecurityToken createBinarySecurityToken(String id, byte[] cer)
          Create a BinarySecurity Token Header element.
 BinarySecurityToken createBinarySecurityToken(String id, String valueType, String encodingType, byte[] token)
          Create a BinarySecurity Token Header element.
 JAXBElement<ReferenceType> createDataReference(SecurityElement se)
           
 DerivedKey createDerivedKey(String id, String algo, byte[] nonce, long offset, long length, String label, SecurityTokenReference str, String spVersion)
           
 DerivedKey createDerivedKey(String id, String algo, byte[] nonce, long offset, long length, String label, SecurityTokenReferenceType str, String spVersion)
           
 DerivedKey createDerivedKey(String id, String algo, byte[] nonce, long offset, long length, String label, SecurityTokenReferenceType str, String refId, String spVersion)
           
 DirectReference createDirectReference()
          Creates a DirectReference element
 EncryptedData createEncryptedData(String id, Attachment attachment, String dataAlgo, KeyInfoType keyInfo, Key key, EncryptionTarget target)
           
 EncryptedData createEncryptedData(String id, Data data, String dataAlgo, KeyInfoType keyInfo, Key key, boolean contentOnly)
           
 EncryptedHeader createEncryptedHeader(String ehId, String edId, Data data, String dataAlgo, KeyInfoType keyInfo, Key key, boolean contentOnly)
           
 EncryptedKey createEncryptedKey(String id, String keyEncAlgo, KeyInfo keyInfo, Key dkEK, Key dataEncKey)
           
 GSHeaderElement createGSHeaderElement(JAXBElement el)
           
 GSHeaderElement createGSHeaderElement(Object obj)
           
 BinarySecurityToken createKerberosBinarySecurityToken(String id, byte[] token)
          Create a Kerberos Binary Security Token
 KeyIdentifier createKeyIdentifier()
           
 KeyInfo createKeyInfo(KeyName name)
           
 KeyInfo createKeyInfo(KeyValue keyValue)
           
 KeyInfo createKeyInfo(SecurityTokenReference str)
           
 KeyInfoType createKeyInfoType(String keyAlgo, String refType, String refId)
           
 SecurityContextToken createSecurityContextToken(SecurityContextTokenType sTokenType, String wsuId)
           
 SecurityContextToken createSecurityContextToken(URI identifier, String instance, String wsuId)
           
 SecurityHeader createSecurityHeader()
           
 SecurityHeader createSecurityHeader(int headerLayout, String soapVersion, boolean mustUnderstandValue)
           
 SecurityTokenReference createSecurityTokenReference()
           
 SecurityTokenReference createSecurityTokenReference(Reference reference)
          Create a SecurityTokenReference
 X509Data createX509DataWithIssuerSerial(X509IssuerSerial xis)
           
 X509IssuerSerial createX509IssuerSerial(String issuerName, BigInteger serialNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eoFactory

public static final ObjectFactory eoFactory
Constructor Detail

WSSElementFactory

public WSSElementFactory(SOAPVersion soapVersion)
Creates a new instance of WSSKeyInfoFactory

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(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)

createKeyInfo

public KeyInfo createKeyInfo(KeyValue keyValue)

createKeyInfo

public KeyInfo createKeyInfo(KeyName name)

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

public 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)

convertAlgURIToTransformation

protected String convertAlgURIToTransformation(String algorithmURI)


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.