public interface Security
| Modifier and Type | Field and Description |
|---|---|
static boolean |
WSSE_VERBOSE
Deprecated.
|
static String |
WSSE_VERBOSE_PROP
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
EncryptedKey |
addEncryption(Token token,
EncryptionSpec spec)
Deprecated.
Adds an encrypted key to the security token.
|
EncryptedKey |
addEncryption(X509Certificate cert,
EncryptionSpec spec)
Deprecated.
Adds an encrypted key to the security token.
|
Signature |
addSignature(Token token,
SignatureSpec spec)
Deprecated.
Adds a XML Signature to the Security element.
|
Timestamp |
addTimestamp()
Deprecated.
adds a timestamp to the security element, with the created time as the
current time and no expiry
|
Timestamp |
addTimestamp(Calendar created)
Deprecated.
adds a timestamp to the security element, using the provided time as the
created time.
|
Timestamp |
addTimestamp(Calendar created,
Calendar expires)
Deprecated.
add a timestamp to the security element, using times provided as args.
|
Timestamp |
addTimestamp(long expires)
Deprecated.
adds a timestamp to the security element, with the created time as the
current time and an expiration 'expires' milliseconds in the future
|
Token |
addToken(Token token)
Deprecated.
Adds a token to the Security element.
|
Token |
addToken(UserInfo user)
Deprecated.
Adds a token for the username/password in the UserInfo.
|
Token |
addToken(X509Certificate cert,
PrivateKey key)
Deprecated.
Adds an X509certificate as a token in the Security element.
|
boolean |
expired()
Deprecated.
returns true if any timestamp in the message has an Expires element whose
time is in the past.
|
boolean |
expired(long maxAge)
Deprecated.
returns trus if any timestamp in the message has a Created time older than
the maxAge or an Expires element that has passed.
|
String |
getRole()
Deprecated.
Returns the role for which this security element was targeted.
|
Token |
getTokenById(String id)
Deprecated.
retrieves the token with the specified ID from the Security element.
|
static final String WSSE_VERBOSE_PROP
static final boolean WSSE_VERBOSE
Signature addSignature(Token token, SignatureSpec spec) throws SecurityProcessingException
token - spec - SecurityProcessingExceptionEncryptedKey addEncryption(Token token, EncryptionSpec spec) throws SecurityProcessingException
token - spec - SecurityProcessingExceptionEncryptedKey addEncryption(X509Certificate cert, EncryptionSpec spec) throws SecurityProcessingException
cert - spec - SecurityProcessingExceptionToken addToken(Token token)
token - Token addToken(X509Certificate cert, PrivateKey key)
cert - key - Token addToken(UserInfo user)
user - Token getTokenById(String id)
id - String getRole()
Timestamp addTimestamp()
Timestamp addTimestamp(long expires)
expires - Timestamp addTimestamp(Calendar created)
created - Timestamp addTimestamp(Calendar created, Calendar expires)
created - expires - boolean expired()
boolean expired(long maxAge)
maxAge -