|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.gsi.gssapi.GlobusGSSCredentialImpl
An implementation of GlobusGSSCredential.
| Field Summary |
| Fields inherited from interface org.gridforum.jgss.ExtendedGSSCredential |
IMPEXP_MECH_SPECIFIC, IMPEXP_OPAQUE |
| Fields inherited from interface org.ietf.jgss.GSSCredential |
ACCEPT_ONLY, DEFAULT_LIFETIME, INDEFINITE_LIFETIME, INITIATE_AND_ACCEPT, INITIATE_ONLY |
| Constructor Summary | |
GlobusGSSCredentialImpl()
Creates anonymous credential. |
|
GlobusGSSCredentialImpl(GlobusCredential cred,
int usage)
Creates regular credential from specified GlobusCredential object. |
|
| Method Summary | |
void |
add(GSSName aName,
int initLifetime,
int acceptLifetime,
Oid mech,
int usage)
Currently not implemented. |
void |
dispose()
|
boolean |
equals(Object obj)
|
byte[] |
export(int option)
Exports this credential so that another process might import it. |
byte[] |
export(int option,
Oid mech)
Exports this credential so that another process might import it. |
X509Certificate[] |
getCertificateChain()
Returns certificate chain of this credential (if any). |
GlobusCredential |
getGlobusCredential()
Returns actual GlobusCredential object represented by this credential (if any). |
Oid[] |
getMechs()
|
GSSName |
getName()
|
GSSName |
getName(Oid mech)
|
PrivateKey |
getPrivateKey()
Returns the private key of this credential (if any). |
int |
getRemainingAcceptLifetime(Oid mech)
|
int |
getRemainingInitLifetime(Oid mech)
|
int |
getRemainingLifetime()
|
int |
getUsage()
|
int |
getUsage(Oid mech)
|
int |
hashCode()
|
Object |
inquireByOid(Oid oid)
Retrieves arbitrary data about this credential. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GlobusGSSCredentialImpl()
public GlobusGSSCredentialImpl(GlobusCredential cred,
int usage)
throws GSSException
cred - the credentialusage - credential usage| Method Detail |
public int hashCode()
hashCode in interface GSSCredentialpublic boolean equals(Object obj)
equals in interface GSSCredential
public void dispose()
throws GSSException
dispose in interface GSSCredentialGSSException
public GSSName getName()
throws GSSException
getName in interface GSSCredentialGSSException
public GSSName getName(Oid mech)
throws GSSException
getName in interface GSSCredentialGSSException
public void add(GSSName aName,
int initLifetime,
int acceptLifetime,
Oid mech,
int usage)
throws GSSException
add in interface GSSCredentialGSSException
public int getUsage()
throws GSSException
getUsage in interface GSSCredentialGSSException
public int getUsage(Oid mech)
throws GSSException
getUsage in interface GSSCredentialGSSException
public int getRemainingLifetime()
throws GSSException
getRemainingLifetime in interface GSSCredentialGSSException
public int getRemainingInitLifetime(Oid mech)
throws GSSException
getRemainingInitLifetime in interface GSSCredentialGSSException
public int getRemainingAcceptLifetime(Oid mech)
throws GSSException
getRemainingAcceptLifetime in interface GSSCredentialGSSException
public Oid[] getMechs()
throws GSSException
getMechs in interface GSSCredentialGSSException
public byte[] export(int option)
throws GSSException
ExtendedGSSCredentialExtendedGSSManager.createCredential method.
export in interface ExtendedGSSCredentialoption - 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.
GSSException - containing the following major error codes:
GSSException.CREDENTIAL_EXPIRED,
GSSException.UNAVAILABLE, GSSException.FAILURE
public byte[] export(int option,
Oid mech)
throws GSSException
ExtendedGSSCredentialExtendedGSSManager.createCredential method.
export in interface ExtendedGSSCredentialoption - 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.
GSSException - containing the following major error codes:
GSSException.CREDENTIAL_EXPIRED,
GSSException.UNAVAILABLE, GSSException.BAD_MECH, GSSException.FAILURE
public Object inquireByOid(Oid oid)
throws GSSException
GSSConstants.X509_CERT_CHAIN
returns certificate chain of this credential
(X509Certificate[]).
inquireByOid in interface ExtendedGSSCredentialoid - the oid of the information desired.
GSSException - containing the following major error codes:
GSSException.FAILUREpublic GlobusCredential getGlobusCredential()
public PrivateKey getPrivateKey()
public X509Certificate[] getCertificateChain()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||