Class SelfAuthorization


  • public class SelfAuthorization
    extends GSSAuthorization
    Performs the identity authorization check. The identity is obtained from specified Globus credentials.
    • Field Detail

      • logger

        private static org.apache.commons.logging.Log logger
    • Constructor Detail

      • SelfAuthorization

        public SelfAuthorization()
    • Method Detail

      • getInstance

        public static SelfAuthorization getInstance()
        Returns a single instance of this class.
        Returns:
        the instance of this class.
      • getExpectedName

        public org.ietf.jgss.GSSName getExpectedName​(org.ietf.jgss.GSSCredential cred,
                                                     java.lang.String host)
                                              throws org.ietf.jgss.GSSException
        Description copied from class: GSSAuthorization
        Returns expected GSSName used for authorization purposes. Can returns null for self authorization.
        Specified by:
        getExpectedName in class GSSAuthorization
        Parameters:
        cred - credentials used
        host - host address of the peer.
        Throws:
        org.ietf.jgss.GSSException - if unable to create the name.
      • authorize

        public void authorize​(org.ietf.jgss.GSSContext context,
                              java.lang.String host)
                       throws AuthorizationException
        Performs self authorization.
        Specified by:
        authorize in class Authorization
        Parameters:
        context - the securit context
        host - host address of the peer.
        Throws:
        AuthorizationException - if the peer is not authorized to access/use the resource.