public abstract class EncodedKeySpec extends java.lang.Object implements KeySpec
Key
,
KeyFactory
,
KeySpec
,
X509EncodedKeySpec
Constructor and Description |
---|
EncodedKeySpec(byte[] encodedKey)
Creates a new EncodedKeySpec with the given encoded key.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getEncoded()
Returns the encoded key.
|
abstract java.lang.String |
getFormat()
Returns the name of the encoding format associated with this
key specification.
|
public EncodedKeySpec(byte[] encodedKey)
encodedKey
- the encoded key.public byte[] getEncoded()
public abstract java.lang.String getFormat()
If the opaque representation of a key
(see Key
) can be generated
(see KeyFactory
)
from this key specification (or a subclass of it),
getFormat
called
on the opaque key returns the same value as the
getFormat
method
of this key specification.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.