Uses of Interface org.ietf.jgss.GSSCredential (Java Platform SE 8 )
Date: 2026-06-25

## Uses of Interface
org.ietf.jgss.GSSCredential

- Packages that use GSSCredential
  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.

- - ### Uses of GSSCredential in org.ietf.jgss

    Methods in org.ietf.jgss that return GSSCredential
    Modifier and Type | Method and Description
    --- | ---
    `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.
    `abstract GSSCredential` | GSSManager.`createCredential(int usage)` Factory method for acquiring default credentials.
    `GSSCredential` | GSSContext.`getDelegCred()` Obtains the credentials delegated by the context initiator to the context acceptor.

    Methods in org.ietf.jgss with parameters of type GSSCredential
    Modifier and Type | Method and Description
    --- | ---
    `abstract GSSContext` | GSSManager.`createContext(GSSCredential myCred)` Factory method for creating a context on the acceptor' side.
    `abstract GSSContext` | GSSManager.`createContext(GSSName peer, Oid mech, GSSCredential myCred, int lifetime)` Factory method for creating a context on the initiator's side.

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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.