|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.gsi.gssapi.GlobusGSSCredentialImpl
public class 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(org.globus.gsi.X509Credential cred,
int usage)
Creates regular credential from specified X509Credential object. |
Method Summary | |
---|---|
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)
|
byte[] |
export(int option,
org.ietf.jgss.Oid mech)
|
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)
|
org.globus.gsi.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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobusGSSCredentialImpl()
public GlobusGSSCredentialImpl(org.globus.gsi.X509Credential cred, int usage) throws org.ietf.jgss.GSSException
cred
- the credentialusage
- credential usage
org.ietf.jgss.GSSException
Method Detail |
---|
public int hashCode()
hashCode
in interface org.ietf.jgss.GSSCredential
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in interface org.ietf.jgss.GSSCredential
equals
in class java.lang.Object
public void dispose() throws org.ietf.jgss.GSSException
dispose
in interface org.ietf.jgss.GSSCredential
org.ietf.jgss.GSSException
public org.ietf.jgss.GSSName getName() throws org.ietf.jgss.GSSException
getName
in interface org.ietf.jgss.GSSCredential
org.ietf.jgss.GSSException
public org.ietf.jgss.GSSName getName(org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSException
getName
in interface org.ietf.jgss.GSSCredential
org.ietf.jgss.GSSException
public 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.GSSCredential
org.ietf.jgss.GSSException
public int getUsage() throws org.ietf.jgss.GSSException
getUsage
in interface org.ietf.jgss.GSSCredential
org.ietf.jgss.GSSException
public int getUsage(org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSException
getUsage
in interface org.ietf.jgss.GSSCredential
org.ietf.jgss.GSSException
public int getRemainingLifetime() throws org.ietf.jgss.GSSException
getRemainingLifetime
in interface org.ietf.jgss.GSSCredential
org.ietf.jgss.GSSException
public int getRemainingInitLifetime(org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSException
getRemainingInitLifetime
in interface org.ietf.jgss.GSSCredential
org.ietf.jgss.GSSException
public int getRemainingAcceptLifetime(org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSException
getRemainingAcceptLifetime
in interface org.ietf.jgss.GSSCredential
org.ietf.jgss.GSSException
public org.ietf.jgss.Oid[] getMechs() throws org.ietf.jgss.GSSException
getMechs
in interface org.ietf.jgss.GSSCredential
org.ietf.jgss.GSSException
public byte[] export(int option) throws org.ietf.jgss.GSSException
export
in interface org.gridforum.jgss.ExtendedGSSCredential
org.ietf.jgss.GSSException
public byte[] export(int option, org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSException
export
in interface org.gridforum.jgss.ExtendedGSSCredential
org.ietf.jgss.GSSException
public 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 org.gridforum.jgss.ExtendedGSSCredential
oid
- the oid of the information desired.
org.ietf.jgss.GSSException
- containing the following major error codes:
GSSException.FAILURE
public org.globus.gsi.X509Credential getX509Credential()
public java.security.PrivateKey getPrivateKey() throws org.ietf.jgss.GSSException
org.ietf.jgss.GSSException
public java.security.cert.X509Certificate[] getCertificateChain()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |