edu.nyu.cs.pdsg.gsspki
Class GSSPKICredential

java.lang.Object
  extended byedu.nyu.cs.pdsg.gsspki.GSSPKICredential
All Implemented Interfaces:
java.lang.Cloneable, org.ietf.jgss.GSSCredential

public class GSSPKICredential
extends java.lang.Object
implements org.ietf.jgss.GSSCredential


Field Summary
(package private)  long expiry
           
(package private)  java.security.KeyPair keys
           
(package private)  org.ietf.jgss.Oid mech
           
(package private)  int usage
           
 
Fields inherited from interface org.ietf.jgss.GSSCredential
ACCEPT_ONLY, DEFAULT_LIFETIME, INDEFINITE_LIFETIME, INITIATE_AND_ACCEPT, INITIATE_ONLY
 
Constructor Summary
protected GSSPKICredential(org.ietf.jgss.Oid _mech, org.ietf.jgss.GSSName name, long _lifetime, int _usage)
           
  GSSPKICredential(org.ietf.jgss.Oid _mech, java.security.KeyPair _keys, long _lifetime, int _usage)
           
 
Method Summary
 void add(org.ietf.jgss.GSSName name, int initLifetime, int acceptLifetime, org.ietf.jgss.Oid _mech, int usage)
           
 void dispose()
           
 boolean equals(java.lang.Object another)
           
 java.security.KeyPair getKeys()
           
 org.ietf.jgss.Oid[] getMechs()
           
 org.ietf.jgss.GSSName getName()
           
 org.ietf.jgss.GSSName getName(org.ietf.jgss.Oid _mech)
           
 int getRemainingAcceptLifetime(org.ietf.jgss.Oid mech)
           
 int getRemainingInitLifetime(org.ietf.jgss.Oid mech)
           
 int getRemainingLifetime()
           
 int getUsage()
           
 int getUsage(org.ietf.jgss.Oid compmech)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mech

org.ietf.jgss.Oid mech

keys

java.security.KeyPair keys

expiry

long expiry

usage

int usage
Constructor Detail

GSSPKICredential

public GSSPKICredential(org.ietf.jgss.Oid _mech,
                        java.security.KeyPair _keys,
                        long _lifetime,
                        int _usage)

GSSPKICredential

protected GSSPKICredential(org.ietf.jgss.Oid _mech,
                           org.ietf.jgss.GSSName name,
                           long _lifetime,
                           int _usage)
                    throws org.ietf.jgss.GSSException
Method Detail

getKeys

public java.security.KeyPair getKeys()

add

public void add(org.ietf.jgss.GSSName name,
                int initLifetime,
                int acceptLifetime,
                org.ietf.jgss.Oid _mech,
                int usage)
         throws org.ietf.jgss.GSSException
Specified by:
add in interface org.ietf.jgss.GSSCredential
Throws:
org.ietf.jgss.GSSException

dispose

public void dispose()
Specified by:
dispose in interface org.ietf.jgss.GSSCredential

equals

public boolean equals(java.lang.Object another)
Specified by:
equals in interface org.ietf.jgss.GSSCredential

getMechs

public org.ietf.jgss.Oid[] getMechs()
Specified by:
getMechs in interface org.ietf.jgss.GSSCredential

getName

public org.ietf.jgss.GSSName getName()
Specified by:
getName in interface org.ietf.jgss.GSSCredential

getName

public org.ietf.jgss.GSSName getName(org.ietf.jgss.Oid _mech)
                              throws org.ietf.jgss.GSSException
Specified by:
getName in interface org.ietf.jgss.GSSCredential
Throws:
org.ietf.jgss.GSSException

getRemainingAcceptLifetime

public int getRemainingAcceptLifetime(org.ietf.jgss.Oid mech)
                               throws org.ietf.jgss.GSSException
Specified by:
getRemainingAcceptLifetime in interface org.ietf.jgss.GSSCredential
Throws:
org.ietf.jgss.GSSException

getRemainingInitLifetime

public int getRemainingInitLifetime(org.ietf.jgss.Oid mech)
Specified by:
getRemainingInitLifetime in interface org.ietf.jgss.GSSCredential

getRemainingLifetime

public int getRemainingLifetime()
Specified by:
getRemainingLifetime in interface org.ietf.jgss.GSSCredential

getUsage

public int getUsage()
Specified by:
getUsage in interface org.ietf.jgss.GSSCredential

getUsage

public int getUsage(org.ietf.jgss.Oid compmech)
             throws org.ietf.jgss.GSSException
Specified by:
getUsage in interface org.ietf.jgss.GSSCredential
Throws:
org.ietf.jgss.GSSException

hashCode

public int hashCode()
Specified by:
hashCode in interface org.ietf.jgss.GSSCredential


Copyright (c) 2002-2003 New York University RLAB