java.lang.Object
iu.auth.pki.PkiVerifier
- All Implemented Interfaces:
IuAuthConfig
,IuTrustedIssuer
,PrincipalVerifier<PkiPrincipal>
public final class PkiVerifier
extends Object
implements PrincipalVerifier<PkiPrincipal>, IuTrustedIssuer
Verifies
PkiPrincipal
end-entity identities.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the authentication endpoint.Gets the authorization scheme.Gets a verifiableIuPrincipalIdentity
that 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.boolean
Determines if this verifier is authoritative for the realm.toString()
void
verify
(PkiPrincipal pki) Verifies a principal identity.
-
Constructor Details
-
PkiVerifier
Constructor.- Parameters:
pkp
- private key principal
-
-
Method Details
-
getAuthScheme
Description copied from interface:IuAuthConfig
Gets the authorization scheme.- Specified by:
getAuthScheme
in interfaceIuAuthConfig
- Returns:
- authorization scheme; null if the realm doesn't define authorization logic
-
getAuthenticationEndpoint
Description copied from interface:IuAuthConfig
Gets 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:
getAuthenticationEndpoint
in interfaceIuAuthConfig
- Returns:
- authentication endpoint
-
getType
Description copied from interface:PrincipalVerifier
Gets the identity type.- Specified by:
getType
in interfacePrincipalVerifier<PkiPrincipal>
- Returns:
- identity type; must be a final implementation class
-
getRealm
Description copied from interface:IuAuthConfig
Gets the authentication realm.- Specified by:
getRealm
in interfaceIuAuthConfig
- Returns:
- authentication realm
-
isAuthoritative
public boolean isAuthoritative()Description copied from interface:PrincipalVerifier
Determines if this verifier is authoritative for the realm.- Specified by:
isAuthoritative
in 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:PrincipalVerifier
Verifies a principal identity.- Specified by:
verify
in interfacePrincipalVerifier<PkiPrincipal>
- Parameters:
pki
- principal identity- Throws:
IuAuthenticationException
- If the principal could not be verified
-
getPrincipal
Description copied from interface:IuTrustedIssuer
Gets a verifiableIuPrincipalIdentity
that 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
certificate
in 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:
getPrincipal
in interfaceIuTrustedIssuer
- Parameters:
pkp
- private key principal configuration- Returns:
- Verifiable
IuPrincipalIdentity
if trusted; else null
-
toString
-