public class GlobusGSSCredentialImpl extends java.lang.Object implements ExtendedGSSCredential, java.io.Serializable
GlobusGSSCredential.IMPEXP_MECH_SPECIFIC, IMPEXP_OPAQUE| Constructor and Description |
|---|
GlobusGSSCredentialImpl()
Creates anonymous credential.
|
GlobusGSSCredentialImpl(X509Credential cred,
int usage)
Creates regular credential from specified
X509Credential object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.ietf.jgss.GSSName aName,
int initLifetime,
int acceptLifetime,
org.ietf.jgss.Oid mech,
int usage)
Currently not implemented.
|
void |
dispose() |
boolean |
equals(java.lang.Object obj) |
byte[] |
export(int option)
Exports this credential so that another process might import it.
|
byte[] |
export(int option,
org.ietf.jgss.Oid mech)
Exports this credential so that another process might import it.
|
java.security.cert.X509Certificate[] |
getCertificateChain()
Returns certificate chain of this credential (if any).
|
org.ietf.jgss.Oid[] |
getMechs() |
org.ietf.jgss.GSSName |
getName() |
org.ietf.jgss.GSSName |
getName(org.ietf.jgss.Oid mech) |
java.security.PrivateKey |
getPrivateKey()
Returns the private key of this credential (if any).
|
int |
getRemainingAcceptLifetime(org.ietf.jgss.Oid mech) |
int |
getRemainingInitLifetime(org.ietf.jgss.Oid mech) |
int |
getRemainingLifetime() |
int |
getUsage() |
int |
getUsage(org.ietf.jgss.Oid mech) |
X509Credential |
getX509Credential()
Returns actual X509Credential object represented
by this credential (if any).
|
int |
hashCode() |
java.lang.Object |
inquireByOid(org.ietf.jgss.Oid oid)
Retrieves arbitrary data about this credential.
|
public GlobusGSSCredentialImpl()
public GlobusGSSCredentialImpl(X509Credential cred, int usage) throws org.ietf.jgss.GSSException
cred - the credentialusage - credential usageorg.ietf.jgss.GSSExceptionpublic int hashCode()
hashCode in interface org.ietf.jgss.GSSCredentialhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface org.ietf.jgss.GSSCredentialequals in class java.lang.Objectpublic void dispose()
throws org.ietf.jgss.GSSException
dispose in interface org.ietf.jgss.GSSCredentialorg.ietf.jgss.GSSExceptionpublic org.ietf.jgss.GSSName getName()
throws org.ietf.jgss.GSSException
getName in interface org.ietf.jgss.GSSCredentialorg.ietf.jgss.GSSExceptionpublic org.ietf.jgss.GSSName getName(org.ietf.jgss.Oid mech)
throws org.ietf.jgss.GSSException
getName in interface org.ietf.jgss.GSSCredentialorg.ietf.jgss.GSSExceptionpublic void add(org.ietf.jgss.GSSName aName,
int initLifetime,
int acceptLifetime,
org.ietf.jgss.Oid mech,
int usage)
throws org.ietf.jgss.GSSException
add in interface org.ietf.jgss.GSSCredentialorg.ietf.jgss.GSSExceptionpublic int getUsage()
throws org.ietf.jgss.GSSException
getUsage in interface org.ietf.jgss.GSSCredentialorg.ietf.jgss.GSSExceptionpublic int getUsage(org.ietf.jgss.Oid mech)
throws org.ietf.jgss.GSSException
getUsage in interface org.ietf.jgss.GSSCredentialorg.ietf.jgss.GSSExceptionpublic int getRemainingLifetime()
throws org.ietf.jgss.GSSException
getRemainingLifetime in interface org.ietf.jgss.GSSCredentialorg.ietf.jgss.GSSExceptionpublic int getRemainingInitLifetime(org.ietf.jgss.Oid mech)
throws org.ietf.jgss.GSSException
getRemainingInitLifetime in interface org.ietf.jgss.GSSCredentialorg.ietf.jgss.GSSExceptionpublic int getRemainingAcceptLifetime(org.ietf.jgss.Oid mech)
throws org.ietf.jgss.GSSException
getRemainingAcceptLifetime in interface org.ietf.jgss.GSSCredentialorg.ietf.jgss.GSSExceptionpublic org.ietf.jgss.Oid[] getMechs()
throws org.ietf.jgss.GSSException
getMechs in interface org.ietf.jgss.GSSCredentialorg.ietf.jgss.GSSExceptionpublic byte[] export(int option)
throws org.ietf.jgss.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.org.ietf.jgss.GSSException - containing the following major error codes:
GSSException.CREDENTIAL_EXPIRED,
GSSException.UNAVAILABLE, GSSException.FAILUREpublic byte[] export(int option,
org.ietf.jgss.Oid mech)
throws org.ietf.jgss.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.org.ietf.jgss.GSSException - containing the following major error codes:
GSSException.CREDENTIAL_EXPIRED,
GSSException.UNAVAILABLE, GSSException.BAD_MECH, GSSException.FAILUREpublic java.lang.Object inquireByOid(org.ietf.jgss.Oid oid)
throws org.ietf.jgss.GSSException
GSSConstants.X509_CERT_CHAIN
returns certificate chain of this credential
(X509Certificate[]).
inquireByOid in interface ExtendedGSSCredentialoid - the oid of the information desired.org.ietf.jgss.GSSException - containing the following major error codes:
GSSException.FAILUREpublic X509Credential getX509Credential()
public java.security.PrivateKey getPrivateKey()
throws org.ietf.jgss.GSSException
org.ietf.jgss.GSSExceptionpublic java.security.cert.X509Certificate[] getCertificateChain()
Copyright © 2013. All Rights Reserved.