Package com.trilead.ssh2.auth
Class GSSContextKrb5
- java.lang.Object
-
- com.trilead.ssh2.auth.GSSContextKrb5
-
public class GSSContextKrb5 extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private org.ietf.jgss.GSSContext
context
private static java.lang.String
KRB5_OID
private static java.lang.String
PRINCIPAL_NAME_OID
private static java.lang.String
USE_SUBJECTS_CREDS_ONLY
-
Constructor Summary
Constructors Constructor Description GSSContextKrb5()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(java.lang.String host)
void
dispose()
byte[]
getMIC(byte[] message, int s, int l)
byte[]
init(byte[] token, int s, int l)
boolean
isEstablished()
-
-
-
Field Detail
-
PRINCIPAL_NAME_OID
private static final java.lang.String PRINCIPAL_NAME_OID
- See Also:
- Constant Field Values
-
KRB5_OID
private static final java.lang.String KRB5_OID
- See Also:
- Constant Field Values
-
USE_SUBJECTS_CREDS_ONLY
private static final java.lang.String USE_SUBJECTS_CREDS_ONLY
- See Also:
- Constant Field Values
-
context
private org.ietf.jgss.GSSContext context
-
-
Method Detail
-
create
public void create(java.lang.String host) throws java.net.UnknownHostException, org.ietf.jgss.GSSException
- Throws:
java.net.UnknownHostException
org.ietf.jgss.GSSException
-
isEstablished
public boolean isEstablished()
-
init
public byte[] init(byte[] token, int s, int l) throws org.ietf.jgss.GSSException, java.lang.SecurityException
- Throws:
org.ietf.jgss.GSSException
java.lang.SecurityException
-
getMIC
public byte[] getMIC(byte[] message, int s, int l) throws org.ietf.jgss.GSSException
- Throws:
org.ietf.jgss.GSSException
-
dispose
public void dispose() throws org.ietf.jgss.GSSException
- Throws:
org.ietf.jgss.GSSException
-
-