All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xipki.ca.gateway.RequestorAuthenticator Maven / Gradle / Ivy

There is a newer version: 6.5.1
Show newest version
// Copyright (c) 2013-2023 xipki. All rights reserved.
// License Apache License 2.0

package org.xipki.ca.gateway;

import org.xipki.security.X509Cert;

/**
 *
 * @author Lijun Liao (xipki)
 * @since 6.0.0
 */

public interface RequestorAuthenticator {

  /**
   * Return the password-based requestor for given keyID. Used for CMP gateway.
   * @param keyId the key ID
   * @return the requestor.
   */
  Requestor.SimplePasswordRequestor getSimplePasswordRequestorByKeyId(byte[] keyId);

  /**
   * Return the password-based requestor for given user. Used for EST, REST and SCEP gateway.
   * @param user the user
   * @return the requestor.
   */
  Requestor.PasswordRequestor getPasswordRequestorByUser(String user);

  /**
   * Return the certificate-based requestor for given client certificate.
   * Used for CMP, EST, REST and SCEP gateway.
   * @param cert the client certificate
   * @return the requestor.
   */
  Requestor.CertRequestor getCertRequestor(X509Cert cert);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy