Package | Description |
---|---|
java.security |
Provides the classes and interfaces for the security framework.
|
java.security.spec |
Provides classes and interfaces for key specifications and algorithm parameter
specifications.
|
javax.crypto.spec |
Provides classes and interfaces for key specifications and algorithm parameter
specifications.
|
Modifier and Type | Method and Description |
---|---|
PublicKey |
KeyFactory.generatePublic(KeySpec keySpec)
Generates a public key object from the provided key specification
(key material).
|
Modifier and Type | Class and Description |
---|---|
class |
EncodedKeySpec
This class represents a public key in encoded format.
|
class |
X509EncodedKeySpec
This class represents the ASN.1 encoding of a public key,
encoded according to the ASN.1 type
SubjectPublicKeyInfo . |
Modifier and Type | Class and Description |
---|---|
class |
SecretKeySpec
This class specifies a secret key in a provider-independent fashion.
|
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.