java.lang.Object
iu.auth.pki.CaVerifier
- All Implemented Interfaces:
IuAuthConfig,IuTrustedIssuer,PrincipalVerifier<PkiPrincipal>
public final class CaVerifier
extends Object
implements PrincipalVerifier<PkiPrincipal>, IuTrustedIssuer
Verifies
PkiPrincipal identities.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the authentication endpoint.Gets the authorization scheme.Gets a verifiableIuPrincipalIdentitythat corresponds to a configured private key principal, if the private key was registered as trusted.getRealm()Gets the authentication realm.getType()Gets the identity type.booleanDetermines if this verifier is authoritative for the realm.toString()voidverify(PkiPrincipal pki) Verifies a principal identity.
-
Constructor Details
-
CaVerifier
Constructor.- Parameters:
ca- CA principal identity
-
-
Method Details
-
getAuthScheme
Description copied from interface:IuAuthConfigGets the authorization scheme.- Specified by:
getAuthSchemein interfaceIuAuthConfig- Returns:
- authorization scheme; null if the realm doesn't define authorization logic
-
getAuthenticationEndpoint
Description copied from interface:IuAuthConfigGets the authentication endpoint.This endpoint is responsible for authentication server interactions for an application module. This endpoint sets an authenticated session cookie and redirects the user to an application-specific entry point.
- Specified by:
getAuthenticationEndpointin interfaceIuAuthConfig- Returns:
- authentication endpoint
-
getType
Description copied from interface:PrincipalVerifierGets the identity type.- Specified by:
getTypein interfacePrincipalVerifier<PkiPrincipal>- Returns:
- identity type; must be a final implementation class
-
getRealm
Description copied from interface:IuAuthConfigGets the authentication realm.- Specified by:
getRealmin interfaceIuAuthConfig- Returns:
- authentication realm
-
isAuthoritative
public boolean isAuthoritative()Description copied from interface:PrincipalVerifierDetermines if this verifier is authoritative for the realm.- Specified by:
isAuthoritativein interfacePrincipalVerifier<PkiPrincipal>- Returns:
- true if the identity principal is managed by the authorization module, or verifiable through an established trust relationship with a remote authentication provider; false verification is based solely on an implicit trust relationship based on well-known information about the authentication provider.
-
verify
Description copied from interface:PrincipalVerifierVerifies a principal identity.- Specified by:
verifyin interfacePrincipalVerifier<PkiPrincipal>- Parameters:
pki- principal identity- Throws:
IuAuthenticationException- If the principal could not be verified
-
getPrincipal
Description copied from interface:IuTrustedIssuerGets a verifiableIuPrincipalIdentitythat corresponds to a configured private key principal, if the private key was registered as trusted.If the private key is held locally by the incoming config, the principal returned by this method will verify as authoritative. If a
certificatein the private key's well-known certificate chain is held, but not the private key itself, the principal returned will verify as non-authoritative.- Specified by:
getPrincipalin interfaceIuTrustedIssuer- Parameters:
pkp- private key principal configuration- Returns:
- Verifiable
IuPrincipalIdentityif trusted; else null
-
toString
-