Class DefaultAuthenticationResultBuilder

  • All Implemented Interfaces:
    java.io.Serializable, org.apereo.cas.authentication.AuthenticationResultBuilder

    public class DefaultAuthenticationResultBuilder
    extends java.lang.Object
    implements org.apereo.cas.authentication.AuthenticationResultBuilder
    Since:
    4.2.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apereo.cas.authentication.AuthenticationResult build​(org.apereo.cas.authentication.PrincipalElectionStrategy principalElectionStrategy)  
      org.apereo.cas.authentication.AuthenticationResult build​(org.apereo.cas.authentication.PrincipalElectionStrategy principalElectionStrategy, org.apereo.cas.authentication.principal.Service service)  
      org.apereo.cas.authentication.AuthenticationResultBuilder collect​(java.util.Collection<org.apereo.cas.authentication.Authentication> authentications)  
      org.apereo.cas.authentication.AuthenticationResultBuilder collect​(org.apereo.cas.authentication.Authentication authentication)  
      org.apereo.cas.authentication.AuthenticationResultBuilder collect​(org.apereo.cas.authentication.Credential credential)  
      java.util.Optional<org.apereo.cas.authentication.Authentication> getInitialAuthentication()  
      java.util.Optional<org.apereo.cas.authentication.Credential> getInitialCredential()  
      protected void mergeAuthenticationAttributes​(java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> authenticationAttributes, org.apereo.services.persondir.support.merger.IAttributeMerger merger, org.apereo.cas.authentication.Authentication authn)
      Merge authentication attributes.
      protected void mergePrincipalAttributes​(java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> principalAttributes, org.apereo.services.persondir.support.merger.IAttributeMerger merger, org.apereo.cas.authentication.Authentication authn)
      Merge principal attributes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.authentication.AuthenticationResultBuilder

        getAuthentications
    • Constructor Detail

      • DefaultAuthenticationResultBuilder

        public DefaultAuthenticationResultBuilder()
    • Method Detail

      • getInitialAuthentication

        public java.util.Optional<org.apereo.cas.authentication.Authentication> getInitialAuthentication()
        Specified by:
        getInitialAuthentication in interface org.apereo.cas.authentication.AuthenticationResultBuilder
      • collect

        public org.apereo.cas.authentication.AuthenticationResultBuilder collect​(org.apereo.cas.authentication.Authentication authentication)
        Specified by:
        collect in interface org.apereo.cas.authentication.AuthenticationResultBuilder
      • collect

        public org.apereo.cas.authentication.AuthenticationResultBuilder collect​(java.util.Collection<org.apereo.cas.authentication.Authentication> authentications)
        Specified by:
        collect in interface org.apereo.cas.authentication.AuthenticationResultBuilder
      • collect

        public org.apereo.cas.authentication.AuthenticationResultBuilder collect​(org.apereo.cas.authentication.Credential credential)
        Specified by:
        collect in interface org.apereo.cas.authentication.AuthenticationResultBuilder
      • getInitialCredential

        public java.util.Optional<org.apereo.cas.authentication.Credential> getInitialCredential()
        Specified by:
        getInitialCredential in interface org.apereo.cas.authentication.AuthenticationResultBuilder
      • build

        public org.apereo.cas.authentication.AuthenticationResult build​(org.apereo.cas.authentication.PrincipalElectionStrategy principalElectionStrategy)
        Specified by:
        build in interface org.apereo.cas.authentication.AuthenticationResultBuilder
      • build

        public org.apereo.cas.authentication.AuthenticationResult build​(org.apereo.cas.authentication.PrincipalElectionStrategy principalElectionStrategy,
                                                                        org.apereo.cas.authentication.principal.Service service)
        Specified by:
        build in interface org.apereo.cas.authentication.AuthenticationResultBuilder
      • mergeAuthenticationAttributes

        protected void mergeAuthenticationAttributes​(java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> authenticationAttributes,
                                                     org.apereo.services.persondir.support.merger.IAttributeMerger merger,
                                                     org.apereo.cas.authentication.Authentication authn)
        Merge authentication attributes.
        Parameters:
        authenticationAttributes - the authentication attributes
        merger - the merger
        authn - the authn
      • mergePrincipalAttributes

        protected void mergePrincipalAttributes​(java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> principalAttributes,
                                                org.apereo.services.persondir.support.merger.IAttributeMerger merger,
                                                org.apereo.cas.authentication.Authentication authn)
        Merge principal attributes.
        Parameters:
        principalAttributes - the principal attributes
        merger - the merger
        authn - the authn