Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.xml.security.wsse
Interface Security


Deprecated. please use new WS Security API

public interface Security

Field Summary
static boolean WSSE_VERBOSE
          Deprecated.  
static String WSSE_VERBOSE_PROP
          Deprecated.  

 

Method Summary
abstract  EncryptedKey addEncryption(Token token, EncryptionSpec spec)
          Deprecated. Adds an encrypted key to the security token.
abstract  EncryptedKey addEncryption(X509Certificate cert, EncryptionSpec spec)
          Deprecated. Adds an encrypted key to the security token.
abstract  Signature addSignature(Token token, SignatureSpec spec)
          Deprecated. Adds a XML Signature to the Security element.
abstract  Timestamp addTimestamp()
          Deprecated. adds a timestamp to the security element, with the created time as the current time and no expiry
abstract  Timestamp addTimestamp(Calendar created)
          Deprecated. adds a timestamp to the security element, using the provided time as the created time.
abstract  Timestamp addTimestamp(Calendar created, Calendar expires)
          Deprecated. add a timestamp to the security element, using times provided as args.
abstract  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
abstract  Token addToken(Token token)
          Deprecated. Adds a token to the Security element.
abstract  Token addToken(UserInfo user)
          Deprecated. Adds a token for the username/password in the UserInfo.
abstract  Token addToken(X509Certificate cert, PrivateKey key)
          Deprecated. Adds an X509certificate as a token in the Security element.
abstract  boolean expired()
          Deprecated. returns true if any timestamp in the message has an Expires element whose time is in the past.
abstract  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.
abstract  String getRole()
          Deprecated. Returns the role for which this security element was targeted.
abstract  Token getTokenById(String id)
          Deprecated. retrieves the token with the specified ID from the Security element.

 

Field Detail

WSSE_VERBOSE_PROP

static final String WSSE_VERBOSE_PROP
Deprecated. 
See Also:
Constant Field Values

WSSE_VERBOSE

static final boolean WSSE_VERBOSE
Deprecated. 

Method Detail

addSignature

Signature addSignature(Token token,
                       SignatureSpec spec)
                       throws SecurityProcessingException
Deprecated. 
Adds a XML Signature to the Security element. The signature will be signed by the token provided and will follow the SignatureSpec for processing.
Parameters:
token -
spec -
Throws:
SecurityProcessingException

addEncryption

EncryptedKey addEncryption(Token token,
                           EncryptionSpec spec)
                           throws SecurityProcessingException
Deprecated. 
Adds an encrypted key to the security token. Items matching the EncryptionSpec will be encrypted with the key. The key will be encrypted for the entity designated by the Token
Parameters:
token -
spec -
Throws:
SecurityProcessingException

addEncryption

EncryptedKey addEncryption(X509Certificate cert,
                           EncryptionSpec spec)
                           throws SecurityProcessingException
Deprecated. 
Adds an encrypted key to the security token. Items matching the EncryptionSpec will be encrypted with the key. The key will be encrypted with the public key in the certificate.
Parameters:
cert -
spec -
Throws:
SecurityProcessingException

addToken

Token addToken(Token token)
Deprecated. 
Adds a token to the Security element.
Parameters:
token -

addToken

Token addToken(X509Certificate cert,
               PrivateKey key)
Deprecated. 
Adds an X509certificate as a token in the Security element. The returned token can be used to sign/encrypt.
Parameters:
cert -
key -

addToken

Token addToken(UserInfo user)
Deprecated. 
Adds a token for the username/password in the UserInfo. By default, this token will include the password as clear text.
Parameters:
user -

getTokenById

Token getTokenById(String id)
Deprecated. 
retrieves the token with the specified ID from the Security element.
Parameters:
id -

getRole

String getRole()
Deprecated. 
Returns the role for which this security element was targeted.

addTimestamp

Timestamp addTimestamp()
Deprecated. 
adds a timestamp to the security element, with the created time as the current time and no expiry

addTimestamp

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
Parameters:
expires -

addTimestamp

Timestamp addTimestamp(Calendar created)
Deprecated. 
adds a timestamp to the security element, using the provided time as the created time.
Parameters:
created -

addTimestamp

Timestamp addTimestamp(Calendar created,
                       Calendar expires)
Deprecated. 
add a timestamp to the security element, using times provided as args.
Parameters:
created -
expires -

expired

boolean expired()
Deprecated. 
returns true if any timestamp in the message has an Expires element whose time is in the past.

expired

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.
Parameters:
maxAge -

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09