Class BasicCredential

java.lang.Object
org.opensaml.security.credential.AbstractCredential
org.opensaml.security.credential.BasicCredential
All Implemented Interfaces:
Credential, MutableCredential
Direct Known Subclasses:
BasicKeyAgreementCredential, BasicX509Credential

public class BasicCredential
extends AbstractCredential
implements MutableCredential
A basic implementation of Credential.
  • Constructor Details

    • BasicCredential

      public BasicCredential​(@Nonnull PublicKey publicKey)
      Constructor.
      Parameters:
      publicKey - the credential public key
    • BasicCredential

      public BasicCredential​(@Nonnull PublicKey publicKey, @Nullable PrivateKey privateKey)
      Constructor.
      Parameters:
      publicKey - the credential public key
      privateKey - the credential private key
    • BasicCredential

      public BasicCredential​(@Nonnull SecretKey secretKey)
      Constructor.
      Parameters:
      secretKey - the credential secret key
    • BasicCredential

      protected BasicCredential()
      Constructor.
  • Method Details