| Package | Description | 
|---|---|
| org.ietf.jgss | This package presents a framework that allows application developers to
    make use of security services like authentication, data integrity and
    data confidentiality from a variety of underlying security mechanisms
    like Kerberos, using a unified API. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| GSSName | GSSName. canonicalize(Oid mech)Creates a name that is canonicalized for some
 mechanism. | |
| abstract GSSName | GSSManager. createName(byte[] name,
          Oid nameType)Factory method to convert a byte array containing a
 name from the specified namespace to a GSSName object. | |
| abstract GSSName | GSSManager. createName(byte[] name,
          Oid nameType,
          Oid mech)Factory method to convert a byte array containing a
 name from the specified namespace to a GSSName object and canonicalize
 it at the same time for a mechanism. | |
| abstract GSSName | GSSManager. createName(String nameStr,
          Oid nameType)Factory method to convert a string name from the
 specified namespace to a GSSName object. | |
| abstract GSSName | GSSManager. createName(String nameStr,
          Oid nameType,
          Oid mech)Factory method to convert a string name from the
 specified namespace to a GSSName object and canonicalize it at the
 same time for a mechanism. | |
| GSSName | GSSCredential. getName()Retrieves the name of the entity that the credential asserts. | |
| GSSName | GSSCredential. getName(Oid mech)Retrieves a Mechanism Name of the entity that the credential
 asserts. | |
| GSSName | GSSContext. getSrcName()Returns the name of the context initiator. | |
| GSSName | GSSContext. getTargName()Returns the name of the context acceptor. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | GSSCredential. add(GSSName name,
   int initLifetime,
   int acceptLifetime,
   Oid mech,
   int usage)Adds a mechanism specific credential-element to an existing
 credential. | |
| abstract GSSContext | GSSManager. createContext(GSSName peer,
             Oid mech,
             GSSCredential myCred,
             int lifetime)Factory method for creating a context on the initiator's
 side. | |
| abstract GSSCredential | GSSManager. createCredential(GSSName name,
                int lifetime,
                Oid[] mechs,
                int usage)Factory method for acquiring credentials over a set of
 mechanisms. | |
| abstract GSSCredential | GSSManager. createCredential(GSSName name,
                int lifetime,
                Oid mech,
                int usage)Factory method for acquiring a single mechanism credential. | |
| boolean | GSSName. equals(GSSName another)Compares two  GSSNameobjects to determine if they refer to the
 same entity. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.