SpecConstants
public class SecuritySpec extends java.lang.Object implements SpecConstants
Modifier and Type | Field | Description |
---|---|---|
static java.lang.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 | Description |
---|---|---|
boolean |
getEnablePasswordAuth() |
Deprecated.
Returns whether Password based auth has been enabled for this spec.
|
EncryptionSpec |
getEncryptionSpec() |
Deprecated.
Returns the EncryptionSpec for this SecuritySpec
|
java.lang.String |
getId() |
Deprecated.
Returns the id for this SecuritySpec
|
java.lang.String |
getRole() |
Deprecated.
Returns the role for this SecuritySpec
|
SignatureSpec |
getSignatureSpec() |
Deprecated.
Returns the SignatureSpec for this SecuritySpec
|
BinarySecurityTokenSpec |
setBinarySecurityTokenSpec(java.lang.String type) |
Deprecated.
addBinarySecurityTokenSpec adds a spec for a
BinarySecurityTokenImpl to the SecuritySpec. |
BinarySecurityTokenSpec |
setBinarySecurityTokenSpec(BinarySecurityTokenSpec spec) |
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(java.lang.String encryptionURI,
java.security.cert.X509Certificate cert) |
Deprecated.
addEncryptionSpec adds a spec for encrypted data to
the SecuritySpec. |
EncryptionSpec |
setEncryptionSpec(java.lang.String encryptionURI,
java.security.cert.X509Certificate cert,
boolean encryptBody) |
Deprecated.
addEncryptionSpec adds a spec for encrypted data to
the SecuritySpec. |
EncryptionSpec |
setEncryptionSpec(EncryptionSpec spec) |
Deprecated.
|
void |
setId(java.lang.String id) |
Deprecated.
|
void |
setNamespace(java.lang.String namespace) |
Deprecated.
|
void |
setRole(java.lang.String role) |
Deprecated.
|
SignatureSpec |
setSignatureSpec(java.lang.String canonicalizationURI,
java.lang.String signatureURI) |
Deprecated.
setSignatureSpec adds a SignatureSpec to the
SecuritySpec element. |
SignatureSpec |
setSignatureSpec(java.lang.String canonicalizationURI,
java.lang.String signatureURI,
boolean signedBody) |
Deprecated.
setSignatureSpec adds a SignatureSpec to the
SecuritySpec element. |
SignatureSpec |
setSignatureSpec(SignatureSpec spec) |
Deprecated.
setSignatureSpec adds the provided signatureSpec
to this SecuritySpec |
public static final java.lang.String DEFAULT_SPEC_ID
public void setRole(java.lang.String role)
public void setId(java.lang.String id)
public void setNamespace(java.lang.String namespace)
public SignatureSpec setSignatureSpec(java.lang.String canonicalizationURI, java.lang.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(java.lang.String canonicalizationURI, java.lang.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(java.lang.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(java.lang.String encryptionURI, java.security.cert.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(java.lang.String encryptionURI, java.security.cert.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 java.lang.String getRole()
public java.lang.String getId()
public void setEnablePasswordAuth(boolean enable)
enable
- public boolean getEnablePasswordAuth()
public SignatureSpec getSignatureSpec()
public EncryptionSpec getEncryptionSpec()