Class KeyUsage
java.lang.Object
eu.europa.esig.dss.model.x509.extension.CertificateExtension
eu.europa.esig.dss.model.x509.extension.KeyUsage
- All Implemented Interfaces:
OidBasedEnum
,OidDescription
,Serializable
4.2.1.3. Key Usage
The key usage extension defines the purpose (e.g., encipherment,
signature, certificate signing) of the key contained in the
certificate. The usage restriction might be employed when a key that
could be used for more than one operation is to be restricted. For
example, when an RSA key should be used only to verify signatures on
objects other than public key certificates and CRLs, the
digitalSignature and/or nonRepudiation bits would be asserted.
Likewise, when an RSA key should be used only for key management, the
keyEncipherment bit would be asserted.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the key usage bitsvoid
setKeyUsageBits
(List<KeyUsageBit> keyUsageBits) Sets the key usage bitsMethods inherited from class eu.europa.esig.dss.model.x509.extension.CertificateExtension
checkCritical, getDescription, getOctets, getOid, isCritical, setOctets
-
Constructor Details
-
KeyUsage
public KeyUsage()Default constructor
-
-
Method Details
-
getKeyUsageBits
Returns the key usage bits- Returns:
- a list of
KeyUsageBit
-
setKeyUsageBits
Sets the key usage bits- Parameters:
keyUsageBits
- a list ofKeyUsageBit
-