com.sun.xml.ws.security.impl
Class DerivedKeyTokenImpl

java.lang.Object
  extended by com.sun.xml.ws.security.impl.DerivedKeyTokenImpl
All Implemented Interfaces:
DerivedKeyToken, Token

public class DerivedKeyTokenImpl
extends Object
implements DerivedKeyToken

Author:
Ashutosh Shahi

Field Summary
 
Fields inherited from interface com.sun.xml.ws.security.DerivedKeyToken
DEFAULT_DERIVED_KEY_TOKEN_ALGORITHM, DEFAULT_DERIVEDKEYTOKEN_LABEL, DERIVED_KEY_TOKEN_TYPE
 
Constructor Summary
DerivedKeyTokenImpl(long generation, byte[] secret)
           
DerivedKeyTokenImpl(long offset, long length, byte[] secret)
          Creates a new instance of DerivedKeyTokenImpl
DerivedKeyTokenImpl(long offset, long length, byte[] secret, byte[] nonce)
           
DerivedKeyTokenImpl(long offset, long length, byte[] secret, byte[] nonce, String label)
           
 
Method Summary
 SecretKey generateSymmetricKey(String algorithm)
           
 URI getAlgorithm()
           
 long getGeneration()
           
 String getLabel()
           
 long getLength()
           
 byte[] getNonce()
           
 long getOffset()
           
 Object getTokenValue()
          The token Value
 String getType()
          The type of the Token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DerivedKeyTokenImpl

public DerivedKeyTokenImpl(long offset,
                           long length,
                           byte[] secret)
Creates a new instance of DerivedKeyTokenImpl


DerivedKeyTokenImpl

public DerivedKeyTokenImpl(long offset,
                           long length,
                           byte[] secret,
                           byte[] nonce)

DerivedKeyTokenImpl

public DerivedKeyTokenImpl(long offset,
                           long length,
                           byte[] secret,
                           byte[] nonce,
                           String label)

DerivedKeyTokenImpl

public DerivedKeyTokenImpl(long generation,
                           byte[] secret)
Method Detail

getAlgorithm

public URI getAlgorithm()
Specified by:
getAlgorithm in interface DerivedKeyToken

getLength

public long getLength()
Specified by:
getLength in interface DerivedKeyToken

getOffset

public long getOffset()
Specified by:
getOffset in interface DerivedKeyToken

getType

public String getType()
Description copied from interface: Token
The type of the Token

Specified by:
getType in interface Token

getTokenValue

public Object getTokenValue()
Description copied from interface: Token
The token Value

Specified by:
getTokenValue in interface Token

getGeneration

public long getGeneration()
Specified by:
getGeneration in interface DerivedKeyToken

getLabel

public String getLabel()
Specified by:
getLabel in interface DerivedKeyToken

getNonce

public byte[] getNonce()
Specified by:
getNonce in interface DerivedKeyToken

generateSymmetricKey

public SecretKey generateSymmetricKey(String algorithm)
                               throws InvalidKeyException,
                                      NoSuchAlgorithmException,
                                      UnsupportedEncodingException
Specified by:
generateSymmetricKey in interface DerivedKeyToken
Throws:
InvalidKeyException
NoSuchAlgorithmException
UnsupportedEncodingException


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