public class SecuritySpec extends Object implements SpecConstants
| Modifier and Type | Field and Description | 
|---|---|
static String | 
DEFAULT_SPEC_ID
Deprecated.  
  | 
ATTR_CANONICALIZATION_METHOD, ATTR_ENCODING, ATTR_ENCRYPT_BODY, ATTR_ENCRYPTION_METHOD, ATTR_ID, ATTR_KEY_ALIAS, ATTR_KEY_PASSWORD, ATTR_KEYWRAPPING_METHOD, ATTR_LOCALPART, ATTR_NAMESPACE, ATTR_PASSWORDTYPE, ATTR_REALM, ATTR_REF_ID, ATTR_RESTRICTION, ATTR_SIGN_BODY, ATTR_SIGNATURE_METHOD, ATTR_VALUETYPE, DEFAULT_PREFIX, RESTRICTION_BODY, RESTRICTION_HEADER, SOAP_ATTR_ROLE, SOAP_ENV_PREFIX, SPEC_URI, TAG_BINARY_SECURITY_TOKEN_SPEC, TAG_CLOCK_PRECISION, TAG_CLOCKS_SYNCHRONIZED, TAG_DD_SECURITY, TAG_ENCRYPTION_KEY, TAG_ENCRYPTION_SPEC, TAG_ENFORCE_PRECISION, TAG_ENTITY_NAME, TAG_ENTITY_PASSWORD, TAG_FRESHNESS, TAG_GENERATE_TS, TAG_REQUIRE_TS, TAG_SECURITY_SPEC, TAG_SECURITY_SPEC_REF, TAG_SIGNATURE_KEY, TAG_SIGNATURE_SPEC, TAG_TS_CONFIG, TAG_TYPE_IDENTIFIER, TAG_USER, TAG_USERNAME_TOKEN_SPEC, TAG_VALIDITY, XSD_FALSE, XSD_TRUE| Modifier and Type | Method and Description | 
|---|---|
boolean | 
getEnablePasswordAuth()
Deprecated.  
Returns whether Password based auth has been enabled for this spec. 
 | 
EncryptionSpec | 
getEncryptionSpec()
Deprecated.  
Returns the EncryptionSpec for this SecuritySpec 
 | 
String | 
getId()
Deprecated.  
Returns the id for this SecuritySpec 
 | 
String | 
getRole()
Deprecated.  
Returns the role for this SecuritySpec 
 | 
SignatureSpec | 
getSignatureSpec()
Deprecated.  
Returns the SignatureSpec for this SecuritySpec 
 | 
BinarySecurityTokenSpec | 
setBinarySecurityTokenSpec(BinarySecurityTokenSpec spec)
Deprecated.  
addBinarySecurityTokenSpec adds a spec for a
 BinarySecurityTokenImpl to the SecuritySpec. | 
BinarySecurityTokenSpec | 
setBinarySecurityTokenSpec(String type)
Deprecated.  
addBinarySecurityTokenSpec adds a spec for a
 BinarySecurityTokenImpl to the SecuritySpec. | 
void | 
setEnablePasswordAuth(boolean enable)
Deprecated.  
enables plain text password auth for this SecuritySpec 
 | 
EncryptionSpec | 
setEncryptionSpec(EncryptionSpec spec)
Deprecated.  
  | 
EncryptionSpec | 
setEncryptionSpec(String encryptionURI,
                 X509Certificate cert)
Deprecated.  
addEncryptionSpec adds a spec for encrypted data to
 the SecuritySpec. | 
EncryptionSpec | 
setEncryptionSpec(String encryptionURI,
                 X509Certificate cert,
                 boolean encryptBody)
Deprecated.  
addEncryptionSpec adds a spec for encrypted data to
 the SecuritySpec. | 
void | 
setId(String id)
Deprecated.  
  | 
void | 
setNamespace(String namespace)
Deprecated.  
  | 
void | 
setRole(String role)
Deprecated.  
  | 
SignatureSpec | 
setSignatureSpec(SignatureSpec spec)
Deprecated.  
setSignatureSpec adds the provided signatureSpec
 to this SecuritySpec | 
SignatureSpec | 
setSignatureSpec(String canonicalizationURI,
                String signatureURI)
Deprecated.  
setSignatureSpec adds a SignatureSpec to the
 SecuritySpec element. | 
SignatureSpec | 
setSignatureSpec(String canonicalizationURI,
                String signatureURI,
                boolean signedBody)
Deprecated.  
setSignatureSpec adds a SignatureSpec to the
 SecuritySpec element. | 
public static final String DEFAULT_SPEC_ID
public void setRole(String role)
public void setId(String id)
public void setNamespace(String namespace)
public SignatureSpec setSignatureSpec(String canonicalizationURI, String signatureURI)
setSignatureSpec adds a SignatureSpec to the
 SecuritySpec element.  The SignatureSpec can be further
 configured using the returned instance.canonicalizationURI - a String value that is
 URI of the canonicalization method to be used in the signaturesignatureURI - a String value that is the URI
 of the signature method to be used for the signature.SignatureSpec valuepublic SignatureSpec setSignatureSpec(String canonicalizationURI, String signatureURI, boolean signedBody)
setSignatureSpec adds a SignatureSpec to the
 SecuritySpec element.  The SignatureSpec can be further
 configured using the returned instance.canonicalizationURI - a String value that is
 URI of the canonicalization method to be used in the signaturesignatureURI - a String value that is the URI
 of the signature method to be used for the signature.signedBody - indicates whether the operation should cover the SOAP Body.SignatureSpec valuepublic SignatureSpec setSignatureSpec(SignatureSpec spec)
setSignatureSpec adds the provided signatureSpec
 to this SecuritySpecspec - a SignatureSpecpublic BinarySecurityTokenSpec setBinarySecurityTokenSpec(String type)
addBinarySecurityTokenSpec adds a spec for a
 BinarySecurityTokenImpl to the SecuritySpec.type - a String value indicating the type of
 BST to be included (i.e. X509Certificate)UsernameTokenSpec valuepublic BinarySecurityTokenSpec setBinarySecurityTokenSpec(BinarySecurityTokenSpec spec)
addBinarySecurityTokenSpec adds a spec for a
 BinarySecurityTokenImpl to the SecuritySpec.spec - public EncryptionSpec setEncryptionSpec(String encryptionURI, X509Certificate cert)
addEncryptionSpec adds a spec for encrypted data to
 the SecuritySpec.encryptionURI - a String value that is the URI
 of the encryption algorith to be used.cert - a java.security.cert.X509Certificate
 value that is the certificate of the receiver.UsernameTokenSpec valuepublic EncryptionSpec setEncryptionSpec(String encryptionURI, X509Certificate cert, boolean encryptBody)
addEncryptionSpec adds a spec for encrypted data to
 the SecuritySpec.encryptionURI - a String value that is the URI
 of the encryption algorith to be used.cert - a java.security.cert.X509Certificate
 value that is the certificate of the receiver.encryptBody - indicates whether the operation should cover the entire SOAP Body.UsernameTokenSpec valuepublic EncryptionSpec setEncryptionSpec(EncryptionSpec spec)
public String getRole()
public String getId()
public void setEnablePasswordAuth(boolean enable)
enable - public boolean getEnablePasswordAuth()
public SignatureSpec getSignatureSpec()
public EncryptionSpec getEncryptionSpec()