|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gridlab.gat.security.SecurityContext
org.gridlab.gat.security.CertificateSecurityContext
public class CertificateSecurityContext
A container for security Information based upon certificates. Contexts based upon these mechanisms can be used by adaptors to create further contexts containing opaque data objects, e.g. GSSAPI credentials.
Constructor Summary | |
---|---|
CertificateSecurityContext(URI keyfile,
URI certfile,
String password)
Constructs a CertificateSecurityContext out of a URI
pointing to the private key, a URI pointing to the certificate
and a password. |
|
CertificateSecurityContext(URI keyfile,
URI certfile,
String username,
String password)
Constructs a CertificateSecurityContext out of a URI
pointing to the private key, a URI pointing to the certificate, a
username and a password. |
Method Summary | |
---|---|
Object |
clone()
Returns a clone of this context. |
boolean |
equals(Object obj)
Check two SecurityContexts for equality. |
URI |
getCertfile()
Returns the URI of the certificate file. |
URI |
getKeyfile()
Returns the location of the keyfile associated with the context. |
int |
getPrivateKeySlot()
Returns the private key slot. |
int |
hashCode()
|
void |
setCertfile(URI certfile)
Set the location of the certificate file. |
void |
setKeyfile(URI keyfile)
Sets the location of the keyfile associated with the context. |
void |
setPrivateKeySlot(int privateKeySlot)
Sets the private key slot. |
String |
toString()
|
Methods inherited from class org.gridlab.gat.security.SecurityContext |
---|
addNote, containsNoteKey, getDataObject, getNoteValue, getPassword, getUsername, isValidFor, putDataObject, removeDataObject, setPassword, setUsername |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CertificateSecurityContext(URI keyfile, URI certfile, String username, String password)
CertificateSecurityContext
out of a URI
pointing to the private key, a URI
pointing to the certificate, a
username and a password.
keyfile
- the private key file (for example userkey.pem)certfile
- the certificate file (for example usercert.pem)username
- the usernamepassword
- the password or passphrase belonging to the key and
certificate.public CertificateSecurityContext(URI keyfile, URI certfile, String password)
CertificateSecurityContext
out of a URI
pointing to the private key, a URI
pointing to the certificate
and a password.
keyfile
- the private key file (for example userkey.pem)certfile
- the certificate file (for example usercert.pem)password
- the password or passphrase belonging to the key and
certificate.Method Detail |
---|
public boolean equals(Object obj)
equals
in class SecurityContext
obj
- the object to compare this with
public Object clone() throws CloneNotSupportedException
clone
in class SecurityContext
CloneNotSupportedException
public URI getKeyfile()
public void setKeyfile(URI keyfile)
keyfile
- the location of the keyfile associated with the context.public int hashCode()
hashCode
in class SecurityContext
public String toString()
toString
in class Object
public int getPrivateKeySlot()
public void setPrivateKeySlot(int privateKeySlot)
privateKeySlot
- the new private key slot.public URI getCertfile()
URI
of the certificate file.
URI
of the certificate file.public void setCertfile(URI certfile)
certfile
- the location of the certificate file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |