Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AlgorithmConstraints
This interface specifies constraints for cryptographic algorithms, keys (key sizes), and other algorithm parameters.
AlgorithmConstraints
objects are immutable. An implementation
of this interface should not provide methods that can change the state
of an instance once it has been created.
Note that AlgorithmConstraints
can be used to represent the
restrictions described by the security properties
jdk.certpath.disabledAlgorithms
and
jdk.tls.disabledAlgorithms
, or could be used by a
concrete PKIXCertPathChecker
to check whether a specified
certificate in the certification path contains the required algorithm
constraints.
SSLParameters.getAlgorithmConstraints()
,
SSLParameters.setAlgorithmConstraints(AlgorithmConstraints)
Modifier and Type | Method and Description |
---|---|
boolean |
permits(Set<CryptoPrimitive> primitives,
Key key)
Determines whether a key is granted permission for the specified cryptographic primitives. |
boolean |
permits(Set<CryptoPrimitive> primitives,
String algorithm,
AlgorithmParameters parameters)
Determines whether an algorithm is granted permission for the specified cryptographic primitives. |
boolean |
permits(Set<CryptoPrimitive> primitives,
String algorithm,
Key key,
AlgorithmParameters parameters)
Determines whether an algorithm and the corresponding key are granted permission for the specified cryptographic primitives. |
Method Detail |
---|
boolean permits(Set<CryptoPrimitive> primitives, String algorithm, AlgorithmParameters parameters)
primitives
- a set of cryptographic primitivesalgorithm
- the algorithm nameparameters
- the algorithm parameters, or null if no additional
parametersIllegalArgumentException
- if primitives or algorithm is null
or emptyboolean permits(Set<CryptoPrimitive> primitives, Key key)
This method is usually used to check key size and key usage.
primitives
- a set of cryptographic primitiveskey
- the keyIllegalArgumentException
- if primitives is null or empty,
or the key is nullboolean permits(Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters)
primitives
- a set of cryptographic primitivesalgorithm
- the algorithm namekey
- the keyparameters
- the algorithm parameters, or null if no additional
parametersIllegalArgumentException
- if primitives or algorithm is null
or empty, or the key is null
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.