|
Oracle Security Developer Tools Web Services Security Java API Reference 11g (11.1.1) E10678-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.wss.kerberos.KerberosUtils
public class KerberosUtils
Utility methods for use with Java GSS API.
Constructor Summary | |
---|---|
KerberosUtils() |
Method Summary | |
---|---|
static javax.crypto.SecretKey |
getSessionKey(org.ietf.jgss.GSSContext context) Get the kerberos session key stored inside this GSSContext. |
static javax.crypto.SecretKey |
getSessionKey(java.lang.String sname, char[] passwd, byte[] ap_req) Use the string to key algorithm defined in kerberos specs to derive the service's key from the service's principal and password, and then use the service key to decrypt the message |
static javax.crypto.SecretKey |
getSessionKey(javax.security.auth.Subject subject, byte[] ap_req) Get the session key that the service should use to decrypt messages sent by the client. |
static javax.crypto.SecretKey |
getSessionKey(javax.security.auth.Subject subject, java.lang.String svcPrincipalName) Get the kerberos session key that the client should use to talk to the service. |
static javax.crypto.SecretKey |
getSessionKey2(javax.security.auth.Subject subject, byte[] ap_req) Get the session key that the service should use to decrypt messages sent by the client. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KerberosUtils()
Method Detail |
---|
public static javax.crypto.SecretKey getSessionKey(javax.security.auth.Subject subject, java.lang.String svcPrincipalName)
subject
- the client's subjectsvcPrincipalName
- fully qualified service name, i.e. with realmpublic static javax.crypto.SecretKey getSessionKey(org.ietf.jgss.GSSContext context) throws java.lang.ClassNotFoundException, java.lang.NoSuchFieldException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
context
-java.lang.ClassNotFoundException
java.lang.NoSuchFieldException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public static javax.crypto.SecretKey getSessionKey2(javax.security.auth.Subject subject, byte[] ap_req) throws org.ietf.jgss.GSSException
subject
- the service's subjectap_req
- the ap_req packet sent by the client.org.ietf.jgss.GSSException
public static javax.crypto.SecretKey getSessionKey(javax.security.auth.Subject subject, byte[] ap_req) throws java.io.IOException
KrbParser
to parse the message and then uses the KrbDecryptor
to decrypt the messagesubject
- the service's subjectap_req
- the ap_req packet sent by the client.org.ietf.jgss.GSSException
java.io.IOException
public static javax.crypto.SecretKey getSessionKey(java.lang.String sname, char[] passwd, byte[] ap_req) throws java.io.IOException
sname
- the service's principalpasswd
- the service's passwordap_req
- the ap_req packet sent by the client.java.io.IOException
|
Oracle Security Developer Tools Web Services Security Java API Reference 11g (11.1.1) E10678-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |