Package com.sun.xml.ws.security.impl
Class DerivedKeyTokenImpl
- java.lang.Object
-
- com.sun.xml.ws.security.impl.DerivedKeyTokenImpl
-
- All Implemented Interfaces:
com.sun.xml.ws.security.DerivedKeyToken,com.sun.xml.ws.security.Token
public class DerivedKeyTokenImpl extends Object implements com.sun.xml.ws.security.DerivedKeyToken
- Author:
- Ashutosh Shahi
-
-
Constructor Summary
Constructors Constructor Description DerivedKeyTokenImpl(long generation, byte[] secret)DerivedKeyTokenImpl(long offset, long length, byte[] secret)Creates a new instance of DerivedKeyTokenImplDerivedKeyTokenImpl(long offset, long length, byte[] secret, byte[] nonce)DerivedKeyTokenImpl(long offset, long length, byte[] secret, byte[] nonce, String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretKeygenerateSymmetricKey(String algorithm)URIgetAlgorithm()longgetGeneration()StringgetLabel()longgetLength()byte[]getNonce()longgetOffset()ObjectgetTokenValue()StringgetType()
-
-
-
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:
getAlgorithmin interfacecom.sun.xml.ws.security.DerivedKeyToken
-
getLength
public long getLength()
- Specified by:
getLengthin interfacecom.sun.xml.ws.security.DerivedKeyToken
-
getOffset
public long getOffset()
- Specified by:
getOffsetin interfacecom.sun.xml.ws.security.DerivedKeyToken
-
getType
public String getType()
- Specified by:
getTypein interfacecom.sun.xml.ws.security.Token
-
getTokenValue
public Object getTokenValue()
- Specified by:
getTokenValuein interfacecom.sun.xml.ws.security.Token
-
getGeneration
public long getGeneration()
- Specified by:
getGenerationin interfacecom.sun.xml.ws.security.DerivedKeyToken
-
getLabel
public String getLabel()
- Specified by:
getLabelin interfacecom.sun.xml.ws.security.DerivedKeyToken
-
getNonce
public byte[] getNonce()
- Specified by:
getNoncein interfacecom.sun.xml.ws.security.DerivedKeyToken
-
generateSymmetricKey
public SecretKey generateSymmetricKey(String algorithm) throws InvalidKeyException, NoSuchAlgorithmException, UnsupportedEncodingException
- Specified by:
generateSymmetricKeyin interfacecom.sun.xml.ws.security.DerivedKeyToken- Throws:
InvalidKeyExceptionNoSuchAlgorithmExceptionUnsupportedEncodingException
-
-