com.sun.xml.ws.security.impl
Class DerivedKeyTokenImpl
java.lang.Object
com.sun.xml.ws.security.impl.DerivedKeyTokenImpl
- All Implemented Interfaces:
- DerivedKeyToken, Token
public class DerivedKeyTokenImpl
- extends java.lang.Object
- implements DerivedKeyToken
- Author:
- Ashutosh Shahi
|
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,
java.lang.String label)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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,
java.lang.String label)
DerivedKeyTokenImpl
public DerivedKeyTokenImpl(long generation,
byte[] secret)
getAlgorithm
public java.net.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 java.lang.String getType()
- Specified by:
getType in interface Token
getTokenValue
public java.lang.Object getTokenValue()
- Specified by:
getTokenValue in interface Token
getGeneration
public long getGeneration()
- Specified by:
getGeneration in interface DerivedKeyToken
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel in interface DerivedKeyToken
getNonce
public byte[] getNonce()
- Specified by:
getNonce in interface DerivedKeyToken
generateSymmetricKey
public javax.crypto.SecretKey generateSymmetricKey(java.lang.String algorithm)
throws java.security.InvalidKeyException,
java.security.NoSuchAlgorithmException,
java.io.UnsupportedEncodingException
- Specified by:
generateSymmetricKey in interface DerivedKeyToken
- Throws:
java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException
Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.