Interface ExtendedGSSCredential

    • Method Detail

      • export

        byte[] export​(int option)
               throws GSSException
        Exports this credential so that another process might import it. The exported credential might be imported again using the ExtendedGSSManager.createCredential method.
        Parameters:
        option - The export type. If set to ExtendedGSSCredential.IMPEXP_OPAQUE exported buffer is an opaque buffer suitable for storage in memory or on disk or passing to another process. If set to ExtendedGSSCredential.IMPEXP_MECH_SPECIFIC exported buffer is a buffer filled with mechanism-specific information that the calling application can use to pass the credential to another process that is not written to the GSS-API.
        Returns:
        The buffer containing the credential
        Throws:
        GSSException - containing the following major error codes: GSSException.CREDENTIAL_EXPIRED, GSSException.UNAVAILABLE, GSSException.FAILURE
      • export

        byte[] export​(int option,
                      Oid mech)
               throws GSSException
        Exports this credential so that another process might import it. The exported credential might be imported again using the ExtendedGSSManager.createCredential method.
        Parameters:
        option - The export type. If set to ExtendedGSSCredential.IMPEXP_OPAQUE exported buffer is an opaque buffer suitable for storage in memory or on disk or passing to another process. If set to ExtendedGSSCredential.IMPEXP_MECH_SPECIFIC exported buffer is a buffer filled with mechanism-specific information that the calling application can use to pass the credential to another process that is not written to the GSS-API.
        mech - Desired mechanism for exported credential, may be null to indicate system default.
        Returns:
        The buffer containing the credential
        Throws:
        GSSException - containing the following major error codes: GSSException.CREDENTIAL_EXPIRED, GSSException.UNAVAILABLE, GSSException.BAD_MECH, GSSException.FAILURE
      • inquireByOid

        Object inquireByOid​(Oid oid)
                     throws GSSException
        Retrieves arbitrary data about this credential.
        Parameters:
        oid - the oid of the information desired.
        Returns:
        the information desired. Might be null.
        Throws:
        GSSException - containing the following major error codes: GSSException.FAILURE