Class SectorIdentifierService


  • @Named
    public class SectorIdentifierService
    extends java.lang.Object
    Version:
    February 11, 2022
    Author:
    Javier Rojas Blum
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected io.jans.as.model.configuration.AppConfiguration appConfiguration  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDnForSectorIdentifier​(java.lang.String jsId)
      Build DN string for sector identifier
      SectorIdentifier getSectorIdentifierById​(java.lang.String jsId)
      Get sector identifier by jsId
      java.lang.String getSub​(io.jans.as.common.model.registration.Client client, io.jans.as.common.model.common.User user, boolean isCibaGrant)  
      java.lang.String getSub​(IAuthorizationGrant grant)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • appConfiguration

        @Inject
        protected io.jans.as.model.configuration.AppConfiguration appConfiguration
    • Constructor Detail

      • SectorIdentifierService

        public SectorIdentifierService()
    • Method Detail

      • getSectorIdentifierById

        public SectorIdentifier getSectorIdentifierById​(java.lang.String jsId)
        Get sector identifier by jsId
        Parameters:
        jsId - Sector identifier jsId
        Returns:
        Sector identifier
      • getDnForSectorIdentifier

        public java.lang.String getDnForSectorIdentifier​(java.lang.String jsId)
        Build DN string for sector identifier
        Parameters:
        jsId - Sector Identifier jsId
        Returns:
        DN string for specified sector identifier or DN for sector identifiers branch if jsId is null
        Throws:
        java.lang.Exception
      • getSub

        public java.lang.String getSub​(io.jans.as.common.model.registration.Client client,
                                       io.jans.as.common.model.common.User user,
                                       boolean isCibaGrant)