java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.cert.GordianKeyPairUsage

public class GordianKeyPairUsage extends Object
KeyPair Usage.
  • Constructor Details

    • GordianKeyPairUsage

      public GordianKeyPairUsage(GordianKeyPairUse... pUse)
      Constructor.
      Parameters:
      pUse - the usage.
  • Method Details

    • addUse

      public void addUse(GordianKeyPairUse pUse)
      Add a usage.
      Parameters:
      pUse - the use to add
    • hasUse

      public boolean hasUse(GordianKeyPairUse pUse)
      Does the keyPair have the specified use?
      Parameters:
      pUse - the use to test for
      Returns:
      true/false
    • getUsageSet

      public Set<GordianKeyPairUse> getUsageSet()
      Obtain the usageSet.
      Returns:
      the UseSet
    • getKeyUsage

      public org.bouncycastle.asn1.x509.KeyUsage getKeyUsage()
      Obtain the keyUsage.
      Returns:
      the keyUsage