| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private GSSManagerImpl | |
| private Hashtable | |
| private GSSCredentialSpi |
| Access | Constructor and Description |
|---|---|
| public | |
| protected | |
| pack-priv | |
| pack-priv | |
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(GSSName name, int initLifetime, int acceptLifetime, Oid mech, int usage)
Implements org. Adds a mechanism specific credential-element to an existing credential. |
| public void | dispose()
Implements org. Releases any sensitive information that the GSSCredential object may be containing. |
| public boolean | equals(Object another)
Overrides java. Implements org. Tests if this GSSCredential asserts the same entity as the supplied object. |
| public GSSCredentialSpi | Returns: mechanism credential objectthe oid for mechanism to retrieve mechOid, boolean boolean indicating if the function is
to throw exception or return null when element is not
found. initiate)Returns the specified mechanism's credential-element. |
| pack-priv Set | |
| private static String | |
| public Oid[] | getMechs()
Implements org. Returns a list of mechanisms supported by this credential. |
| public GSSName | getName()
Implements org. Retrieves the name of the entity that the credential asserts. |
| public GSSName | getName(Oid mech)
Implements org. Retrieves a Mechanism Name of the entity that the credential asserts. |
| public int | getRemainingAcceptLifetime(Oid mech)
Implements org. Returns the lifetime in seconds for the credential to remain capable of accepting security contexts using the specified mechanism. |
| public int | getRemainingInitLifetime(Oid mech)
Implements org. Returns the lifetime in seconds for the credential to remain capable of initiating security contexts using the specified mechanism. |
| public int | getRemainingLifetime()
Implements org. Returns the remaining lifetime of this credential. |
| public int | getUsage()
Implements org. Returns the usage mode for this credential. |
| public int | getUsage(Oid mech)
Implements org. Returns the credential usage mode for a specific mechanism. |
| public int | Returns: a hashcode value for this GSSCredentialOverrides java. Implements org. Returns a hashcode value for this GSSCredential. |
| public GSSCredential | |
| pack-priv void | |
| public String |
| destroyed | back to summary |
|---|---|
| private boolean destroyed | |
| gssManager | back to summary |
|---|---|
| private GSSManagerImpl gssManager | |
| hashtable | back to summary |
|---|---|
| private Hashtable<GSSCredentialImpl. | |
| tempCred | back to summary |
|---|---|
| private GSSCredentialSpi tempCred | |
| GSSCredentialImpl | back to summary |
|---|---|
| public GSSCredentialImpl() | |
| GSSCredentialImpl | back to summary |
|---|---|
| protected GSSCredentialImpl(GSSCredentialImpl src) | |
| GSSCredentialImpl | back to summary |
|---|---|
| pack-priv GSSCredentialImpl(GSSManagerImpl gssManager, int usage) throws GSSException | |
| GSSCredentialImpl | back to summary |
|---|---|
| pack-priv GSSCredentialImpl(GSSManagerImpl gssManager, GSSName name, int lifetime, Oid mech, int usage) throws GSSException | |
| GSSCredentialImpl | back to summary |
|---|---|
| pack-priv GSSCredentialImpl(GSSManagerImpl gssManager, GSSName name, int lifetime, Oid[] mechs, int usage) throws GSSException | |
| GSSCredentialImpl | back to summary |
|---|---|
| public GSSCredentialImpl(GSSManagerImpl gssManager, GSSCredentialSpi mechElement) throws GSSException | |
| add | back to summary |
|---|---|
| public void add(GSSName name, int initLifetime, int acceptLifetime, Oid mech, int usage) throws GSSException Implements org. Doc from org. Adds a mechanism specific credential-element to an existing credential. This method allows the construction of credentials, one mechanism at a time. This routine is envisioned to be used mainly by context acceptors during the creation of acceptor credentials which are to be used with a variety of clients using different security mechanisms.
This routine adds the new credential element "in-place". To add the
element in a new credential, first call
As always, GSS-API implementations must impose a local access-control
policy on callers to prevent unauthorized callers from acquiring
credentials to which they are not entitled.
Non-default values for initLifetime and acceptLifetime cannot always
be honored by the underlying mechanisms, thus callers should be
prepared to call
| |
| dispose | back to summary |
|---|---|
| public void dispose() throws GSSException Implements org. Doc from org. Releases any sensitive information that the GSSCredential object may be containing. Applications should call this method as soon as the credential is no longer needed to minimize the time any sensitive information is maintained.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object another) Overrides java. Implements org. Doc from org. Tests if this GSSCredential asserts the same entity as the supplied object. The two credentials must be acquired over the same mechanisms and must refer to the same principal.
| |
| getElement | back to summary |
|---|---|
| public GSSCredentialSpi getElement(Oid mechOid, boolean initiate) throws GSSException Returns the specified mechanism's credential-element.
| |
| getElements | back to summary |
|---|---|
| pack-priv Set | |
| getElementStr | back to summary |
|---|---|
| private static String getElementStr(Oid mechOid, int usage) | |
| getMechs | back to summary |
|---|---|
| public Oid[] getMechs() throws GSSException Implements org. Doc from org. Returns a list of mechanisms supported by this credential. It does
not tell us which ones can be used to initiate
contexts and which ones can be used to accept contexts. The
application must call the
| |
| getName | back to summary |
|---|---|
| public GSSName getName() throws GSSException Implements org. Doc from org. Retrieves the name of the entity that the credential asserts.
| |
| getName | back to summary |
|---|---|
| public GSSName getName(Oid mech) throws GSSException Implements org. Doc from org. Retrieves a Mechanism Name of the entity that the credential
asserts. This is equivalent to calling
| |
| getRemainingAcceptLifetime | back to summary |
|---|---|
| public int getRemainingAcceptLifetime(Oid mech) throws GSSException Implements org. Doc from org. Returns the lifetime in seconds for the credential to remain capable of accepting security contexts using the specified mechanism. This method queries the acceptor credential element that belongs to the specified mechanism.
| |
| getRemainingInitLifetime | back to summary |
|---|---|
| public int getRemainingInitLifetime(Oid mech) throws GSSException Implements org. Doc from org. Returns the lifetime in seconds for the credential to remain capable of initiating security contexts using the specified mechanism. This method queries the initiator credential element that belongs to the specified mechanism.
| |
| getRemainingLifetime | back to summary |
|---|---|
| public int getRemainingLifetime() throws GSSException Implements org. Returns the remaining lifetime of this credential. The remaining lifetime is defined as the minimum lifetime, either for initiate or for accept, across all elements contained in it. Not terribly useful, but required by GSS-API.
| |
| getUsage | back to summary |
|---|---|
| public int getUsage() throws GSSException Implements org. Returns the usage mode for this credential. Returns INITIATE_AND_ACCEPT if any one element contained in it supports INITIATE_AND_ACCEPT or if two different elements exist where one support INITIATE_ONLY and the other supports ACCEPT_ONLY.
| |
| getUsage | back to summary |
|---|---|
| public int getUsage(Oid mech) throws GSSException Implements org. Doc from org. Returns the credential usage mode for a specific mechanism. In other words, it tells us if this credential can be used for initiating or accepting security contexts with a given underlying mechanism.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements org. Returns a hashcode value for this GSSCredential.
| |
| impersonate | back to summary |
|---|---|
| public GSSCredential impersonate(GSSName name) throws GSSException | |
| init | back to summary |
|---|---|
| pack-priv void init(GSSManagerImpl gssManager) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object other)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Oid | |
| public int | |
| public int |
| mechOid | back to summary |
|---|---|
| private final Oid mechOid | |
| usage | back to summary |
|---|---|
| private int usage | |
| SearchKey | back to summary |
|---|---|
| public SearchKey(Oid mechOid, int usage) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getMech | back to summary |
|---|---|
| public Oid getMech() | |
| getUsage | back to summary |
|---|---|
| public int getUsage() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |