Class PubKeyFile

java.lang.Object
io.deephaven.enterprise.auth.KeyPairFile
io.deephaven.enterprise.auth.PubKeyFile

public class PubKeyFile extends KeyPairFile
  • Constructor Details

    • PubKeyFile

      public PubKeyFile(@NotNull String pubKeyFileOrResource)
    • PubKeyFile

      public PubKeyFile(String[] pubKeyLines)
  • Method Details

    • fromKeyText

      public static PubKeyFile fromKeyText(String source, String user, String pubKey)
      Create a new public key file from the already parsed values
      Parameters:
      source - source used to identify key when an error occurs
      user - the user
      pubKey - the public key (base64 encoded)
      Returns:
      the PubKeyFile structure representing the parameters
    • getOperateAs

      public String getOperateAs()
      Overrides:
      getOperateAs in class KeyPairFile
    • getPrivateKey

      public PrivateKey getPrivateKey()
      Overrides:
      getPrivateKey in class KeyPairFile
    • getSignedBytes

      public byte[] getSignedBytes(byte[] bytes)
      Overrides:
      getSignedBytes in class KeyPairFile