Class GordianKeyPairUsage
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.cert.GordianKeyPairUsage
KeyPair Usage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUse(GordianKeyPairUse pUse) Add a usage.org.bouncycastle.asn1.x509.KeyUsageObtain the keyUsage.Obtain the usageSet.booleanhasUse(GordianKeyPairUse pUse) Does the keyPair have the specified use?
-
Constructor Details
-
GordianKeyPairUsage
Constructor.- Parameters:
pUse- the usage.
-
-
Method Details
-
addUse
Add a usage.- Parameters:
pUse- the use to add
-
hasUse
Does the keyPair have the specified use?- Parameters:
pUse- the use to test for- Returns:
- true/false
-
getUsageSet
Obtain the usageSet.- Returns:
- the UseSet
-
getKeyUsage
public org.bouncycastle.asn1.x509.KeyUsage getKeyUsage()Obtain the keyUsage.- Returns:
- the keyUsage
-