Class FSSPAuthenticationContextInfo


  • public class FSSPAuthenticationContextInfo
    extends Object
    The FSSPAuthenticationContextInfo is used to contain the information about the AuthenticationContext to AuthenticationLevel mapping
    • Constructor Detail

      • FSSPAuthenticationContextInfo

        public FSSPAuthenticationContextInfo()
        Creates new FSSPAuthenticationContextInfo object.
      • FSSPAuthenticationContextInfo

        public FSSPAuthenticationContextInfo​(String mapping)
                                      throws FSException
        Constructs a new object.
        Parameters:
        mapping - a string that contains service provider's authentication context mapping. It is retrieved from the provider's extended meta.
        Throws:
        FSException - if an error occured during the parsing
      • FSSPAuthenticationContextInfo

        public FSSPAuthenticationContextInfo​(String authenticationContext,
                                             int authenticationLevel)
                                      throws FSException
        Creates new FSSPAuthenticationContextInfo
        Parameters:
        authenticationContext - the authContext name.
        authenticationLevel - the authentication level.
        Throws:
        FSSPAuthenticationContextInfo - if authenticationContext or authenticationLevel is invalid.
        FSException
      • FSSPAuthenticationContextInfo

        public FSSPAuthenticationContextInfo​(String authenticationContext,
                                             String authenticationLevel)
                                      throws FSException
        Creates new FSSPAuthenticationContextInfo
        Parameters:
        authenticationContext - the authContext name.
        authenticationLevel - the authentication level.
        Throws:
        FSSPAuthenticationContextInfo - if authenticationContext or authenticationLevel is invalid.
        FSException
    • Method Detail

      • getAuthenticationContext

        public String getAuthenticationContext()
        Returns the authentication context.
        Returns:
        Authentication Context.
      • setAuthenticationContext

        public void setAuthenticationContext​(String authenticaionContext)
                                      throws FSException
        Sets authentication context.
        Parameters:
        authenticaionContext - Authentication Context.
        Throws:
        FSException - if authenticaionContext is blank.
      • getAuthenticationLevel

        public int getAuthenticationLevel()
        Returns authentication level.
        Returns:
        Authentication Level.
      • setAuthenticationLevel

        public void setAuthenticationLevel​(int authenticationLevel)
                                    throws FSException
        Sets authentication level.
        Parameters:
        authenticationLevel - Authentication Level.
        Throws:
        FSException - if authenticationLevel is negative.
      • setAuthenticationLevel

        public void setAuthenticationLevel​(String authenticationLevel)
                                    throws FSException
        Sets authentication level.
        Parameters:
        authenticationLevel - Authentication Level.
        Throws:
        FSException - if authenticationLevel is negative.