java.lang.Object
iu.auth.pki.KeyUsage
Processes
X509 Key Usage Extensions
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
isCA()
Determines if key usage permits public key use as a CA signing certificate.(package private) boolean
matches
(WebKey.Use use) Determines if key usage flags matchpublic key use
.(package private) boolean
matches
(Set<WebKey.Operation> ops) Determines if key usage flags match (@link Operation Web Crypto key operations}.(package private) WebKey.Operation[]
ops
(boolean verify, boolean hasPrivateKey) GetsWeb Crypto key operations
allowed by key usage.
-
Constructor Details
-
KeyUsage
KeyUsage(X509Certificate certificate) Constructor.- Parameters:
certificate
-X509Certificate
-
-
Method Details
-
isCA
boolean isCA()Determines if key usage permits public key use as a CA signing certificate.- Returns:
- true if X509 key usage flags allow CA certificate and CRL signing
-
matches
Determines if key usage flags matchpublic key use
.- Parameters:
use
-public key use
- Returns:
- true if X509 key usage flags allow the public key use, else false
-
matches
Determines if key usage flags match (@link Operation Web Crypto key operations}.- Parameters:
ops
-WebKey.Operation
Set
- Returns:
- true if X509 key usage flags allow all key operations, else false
-
ops
GetsWeb Crypto key operations
allowed by key usage.- Parameters:
verify
- true to get key ops for digitial signature verification; false for data encryptionhasPrivateKey
- true if the private key is available; false for public key operations only- Returns:
WebKey.Operation
[]
-