Package org.globus.gsi.gssapi
Class GlobusGSSContextImpl
- java.lang.Object
-
- org.globus.gsi.gssapi.GlobusGSSContextImpl
-
- All Implemented Interfaces:
ExtendedGSSContext,org.ietf.jgss.GSSContext
public class GlobusGSSContextImpl extends java.lang.Object implements ExtendedGSSContext
Implementation of SSL/GSI mechanism for Java GSS-API. The implementation is based on JSSE (for SSL API) and the BouncyCastle library (for certificate processing API).
The implementation is not designed to be thread-safe.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.BooleanacceptNoClientCertsprotected booleananonymityprotected BouncyCastleCertProcessingFactorycertFactoryprotected java.lang.BooleancheckContextExpirationprotected booleanconnprotected booleancredentialDelegationprotected GlobusGSSCredentialImplctxCredCredential of this context.protected ExtendedGSSCredentialdelegatedCredCredential delegated using delegation APIprotected booleandelegationFinishedDelegation finished indicatorprotected intdelegationStateDelegation stateprotected GSIConstants.DelegationTypedelegationTypeprotected ExtendedGSSCredentialdelegCredCredential delegated during context establishmentprotected booleanencryptionprotected booleanestablishedprotected org.ietf.jgss.GSSNameexpectedTargetNameExpected target name.protected java.util.DategoodUntilContext expiration date.static intGSI_WRAPUsed to distinguish between a token created bywrapwithGSSConstants.GSI_BIGQoP and a regular token created bywrap.protected java.lang.IntegergssModeprotected java.security.KeyPairkeyPairUsed during delegationprotected java.lang.BooleanpeerLimitedLimited peer credentialsprotected java.util.MapproxyPolicyHandlersprotected java.lang.BooleanrejectLimitedProxyprotected java.lang.BooleanrequireAuthzWithDelegationprotected java.lang.BooleanrequireClientAuthprotected introleContext roleprotected org.ietf.jgss.GSSNamesourceNameThe name of the context initiatorprotected SSLConfiguratorsslConfiguratorprotected javax.net.ssl.SSLContextsslContextprotected javax.net.ssl.SSLEnginesslEngineprotected intstateHandshake stateprotected org.ietf.jgss.GSSNametargetNameThe name of the context acceptorprotected TrustedCertificatestc
-
Constructor Summary
Constructors Constructor Description GlobusGSSContextImpl(org.ietf.jgss.GSSName target, GlobusGSSCredentialImpl cred)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]acceptDelegation(int lifetime, byte[] buf, int off, int len)Accept a delegated credential.byte[]acceptSecContext(byte[] inBuff, int off, int len)This function drives the accepting side of the context establishment process.voidacceptSecContext(java.io.InputStream in, java.io.OutputStream out)It works just likeacceptSecContextmethod.protected voidcheckContext()voiddispose()byte[]export()Currently not implemented.protected byte[]generateCertRequest(java.security.cert.X509Certificate cert)booleangetAnonymityState()booleangetConfState()booleangetCredDelegState()org.ietf.jgss.GSSCredentialgetDelegatedCredential()Returns the delegated credential that was delegated using theinitDelegationandacceptDelegationfunctions.org.ietf.jgss.GSSCredentialgetDelegCred()booleangetIntegState()intgetLifetime()org.ietf.jgss.OidgetMech()byte[]getMIC(byte[] inBuf, int off, int len, org.ietf.jgss.MessageProp prop)Returns a cryptographic MIC (message integrity check) of a specified message.voidgetMIC(java.io.InputStream inStream, java.io.OutputStream outStream, org.ietf.jgss.MessageProp msgProp)Currently not implemented.booleangetMutualAuthState()java.lang.ObjectgetOption(org.ietf.jgss.Oid option)Gets a context option.booleangetReplayDetState()booleangetSequenceDetState()org.ietf.jgss.GSSNamegetSrcName()org.ietf.jgss.GSSNamegetTargName()intgetWrapSizeLimit(int qop, boolean confReq, int maxTokenSize)Currently not implemented.byte[]initDelegation(org.ietf.jgss.GSSCredential credential, org.ietf.jgss.Oid mechanism, int lifetime, byte[] buf, int off, int len)Initiate the delegation of a credential.byte[]initSecContext(byte[] inBuff, int off, int len)This function drives the initiating side of the context establishment process.intinitSecContext(java.io.InputStream in, java.io.OutputStream out)It works just likeinitSecContextmethod.java.lang.ObjectinquireByOid(org.ietf.jgss.Oid oid)Retrieves arbitrary data about this context.booleanisDelegationFinished()Used during delegation to determine the state of the delegation.booleanisEstablished()booleanisInitiator()booleanisProtReady()booleanisTransferable()Currently not implemented.voidrequestAnonymity(boolean state)voidrequestConf(boolean state)voidrequestCredDeleg(boolean state)voidrequestInteg(boolean state)voidrequestLifetime(int lifetime)voidrequestMutualAuth(boolean state)voidrequestReplayDet(boolean state)voidrequestSequenceDet(boolean state)protected voidsetAcceptNoClientCerts(java.lang.Object value)voidsetBannedCiphers(java.lang.String[] ciphers)Specifies a list of ciphers that will not be used.voidsetChannelBinding(org.ietf.jgss.ChannelBinding cb)Currently not implemented.protected voidsetCheckContextExpired(java.lang.Object value)protected voidsetDelegationType(java.lang.Object value)protected voidsetGssMode(java.lang.Object value)voidsetOption(org.ietf.jgss.Oid option, java.lang.Object value)Sets a context option.protected voidsetProxyPolicyHandlers(java.lang.Object value)protected voidsetRejectLimitedProxy(java.lang.Object value)protected voidsetRequireAuthzWithDelegation(java.lang.Object value)protected voidsetRequireClientAuth(java.lang.Object value)protected voidsetTrustedCertificates(java.lang.Object value)byte[]unwrap(byte[] inBuf, int off, int len, org.ietf.jgss.MessageProp prop)Unwraps a token generated bywrapmethod on the other side of the context.voidunwrap(java.io.InputStream inStream, java.io.OutputStream outStream, org.ietf.jgss.MessageProp msgProp)Currently not implemented.protected voidverifyDelegatedCert(java.security.cert.X509Certificate certificate)voidverifyMIC(byte[] inTok, int tokOff, int tokLen, byte[] inMsg, int msgOff, int msgLen, org.ietf.jgss.MessageProp prop)Verifies a cryptographic MIC (message integrity check) of a specified message.voidverifyMIC(java.io.InputStream tokStream, java.io.InputStream msgStream, org.ietf.jgss.MessageProp msgProp)Currently not implemented.byte[]wrap(byte[] inBuf, int off, int len, org.ietf.jgss.MessageProp prop)Wraps a message for integrity and protection.voidwrap(java.io.InputStream inStream, java.io.OutputStream outStream, org.ietf.jgss.MessageProp msgProp)Currently not implemented.
-
-
-
Field Detail
-
GSI_WRAP
public static final int GSI_WRAP
Used to distinguish between a token created bywrapwithGSSConstants.GSI_BIGQoP and a regular token created bywrap.- See Also:
- Constant Field Values
-
state
protected int state
Handshake state
-
delegationState
protected int delegationState
Delegation state
-
delegatedCred
protected ExtendedGSSCredential delegatedCred
Credential delegated using delegation API
-
delegationFinished
protected boolean delegationFinished
Delegation finished indicator
-
credentialDelegation
protected boolean credentialDelegation
-
anonymity
protected boolean anonymity
-
encryption
protected boolean encryption
-
established
protected boolean established
-
sourceName
protected org.ietf.jgss.GSSName sourceName
The name of the context initiator
-
targetName
protected org.ietf.jgss.GSSName targetName
The name of the context acceptor
-
role
protected int role
Context role
-
delegCred
protected ExtendedGSSCredential delegCred
Credential delegated during context establishment
-
delegationType
protected GSIConstants.DelegationType delegationType
-
gssMode
protected java.lang.Integer gssMode
-
checkContextExpiration
protected java.lang.Boolean checkContextExpiration
-
rejectLimitedProxy
protected java.lang.Boolean rejectLimitedProxy
-
requireClientAuth
protected java.lang.Boolean requireClientAuth
-
acceptNoClientCerts
protected java.lang.Boolean acceptNoClientCerts
-
requireAuthzWithDelegation
protected java.lang.Boolean requireAuthzWithDelegation
-
ctxCred
protected GlobusGSSCredentialImpl ctxCred
Credential of this context. Might be anonymous
-
expectedTargetName
protected org.ietf.jgss.GSSName expectedTargetName
Expected target name. Used for authorization in initiator
-
goodUntil
protected java.util.Date goodUntil
Context expiration date.
-
sslConfigurator
protected SSLConfigurator sslConfigurator
-
sslContext
protected javax.net.ssl.SSLContext sslContext
-
sslEngine
protected javax.net.ssl.SSLEngine sslEngine
-
conn
protected boolean conn
-
certFactory
protected BouncyCastleCertProcessingFactory certFactory
-
keyPair
protected java.security.KeyPair keyPair
Used during delegation
-
tc
protected TrustedCertificates tc
-
proxyPolicyHandlers
protected java.util.Map proxyPolicyHandlers
-
peerLimited
protected java.lang.Boolean peerLimited
Limited peer credentials
-
-
Constructor Detail
-
GlobusGSSContextImpl
public GlobusGSSContextImpl(org.ietf.jgss.GSSName target, GlobusGSSCredentialImpl cred) throws org.ietf.jgss.GSSException- Parameters:
target- expected target name. Can be null.cred- credential. Cannot be null. Might be anonymous.- Throws:
org.ietf.jgss.GSSException
-
-
Method Detail
-
acceptSecContext
public byte[] acceptSecContext(byte[] inBuff, int off, int len) throws org.ietf.jgss.GSSExceptionThis function drives the accepting side of the context establishment process. It is expected to be called in tandem with theinitSecContextfunction.
The behavior of context establishment process can be modified byGSSConstants.GSS_MODEandGSSConstants.REJECT_LIMITED_PROXYcontext options. If theGSSConstants.GSS_MODEoption is set toGSIConstants.MODE_SSLthe context establishment process will be compatible with regular SSL (no credential delegation support). If the option is set toGSIConstants.MODE_GSIcredential delegation during context establishment process will be accepted. If theGSSConstants.REJECT_LIMITED_PROXYoption is enabled, a peer presenting limited proxy credential will be automatically rejected and the context establishment process will be aborted.- Specified by:
acceptSecContextin interfaceorg.ietf.jgss.GSSContext- Returns:
- a byte[] containing the token to be sent to the peer. null indicates that no token is generated (needs more data)
- Throws:
org.ietf.jgss.GSSException
-
initSecContext
public byte[] initSecContext(byte[] inBuff, int off, int len) throws org.ietf.jgss.GSSExceptionThis function drives the initiating side of the context establishment process. It is expected to be called in tandem with theacceptSecContextfunction.
The behavior of context establishment process can be modified byGSSConstants.GSS_MODE,GSSConstants.DELEGATION_TYPE, andGSSConstants.REJECT_LIMITED_PROXYcontext options. If theGSSConstants.GSS_MODEoption is set toGSIConstants.MODE_SSLthe context establishment process will be compatible with regular SSL (no credential delegation support). If the option is set toGSIConstants.GSS_MODE_GSIcredential delegation during context establishment process will performed. The delegation type to be performed can be set using theGSSConstants.DELEGATION_TYPEcontext option. If theGSSConstants.REJECT_LIMITED_PROXYoption is enabled, a peer presenting limited proxy credential will be automatically rejected and the context establishment process will be aborted.- Specified by:
initSecContextin interfaceorg.ietf.jgss.GSSContext- Returns:
- a byte[] containing the token to be sent to the peer. null indicates that no token is generated (needs more data).
- Throws:
org.ietf.jgss.GSSException
-
wrap
public byte[] wrap(byte[] inBuf, int off, int len, org.ietf.jgss.MessageProp prop) throws org.ietf.jgss.GSSExceptionWraps a message for integrity and protection. A regular SSL-wrapped token is returned.- Specified by:
wrapin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
unwrap
public byte[] unwrap(byte[] inBuf, int off, int len, org.ietf.jgss.MessageProp prop) throws org.ietf.jgss.GSSExceptionUnwraps a token generated bywrapmethod on the other side of the context.- Specified by:
unwrapin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
dispose
public void dispose() throws org.ietf.jgss.GSSException- Specified by:
disposein interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
isEstablished
public boolean isEstablished()
- Specified by:
isEstablishedin interfaceorg.ietf.jgss.GSSContext
-
requestCredDeleg
public void requestCredDeleg(boolean state) throws org.ietf.jgss.GSSException- Specified by:
requestCredDelegin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
getCredDelegState
public boolean getCredDelegState()
- Specified by:
getCredDelegStatein interfaceorg.ietf.jgss.GSSContext
-
isInitiator
public boolean isInitiator() throws org.ietf.jgss.GSSException- Specified by:
isInitiatorin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
isProtReady
public boolean isProtReady()
- Specified by:
isProtReadyin interfaceorg.ietf.jgss.GSSContext
-
requestLifetime
public void requestLifetime(int lifetime) throws org.ietf.jgss.GSSException- Specified by:
requestLifetimein interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
getLifetime
public int getLifetime()
- Specified by:
getLifetimein interfaceorg.ietf.jgss.GSSContext
-
getMech
public org.ietf.jgss.Oid getMech() throws org.ietf.jgss.GSSException- Specified by:
getMechin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
getDelegCred
public org.ietf.jgss.GSSCredential getDelegCred() throws org.ietf.jgss.GSSException- Specified by:
getDelegCredin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
requestConf
public void requestConf(boolean state) throws org.ietf.jgss.GSSException- Specified by:
requestConfin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
getConfState
public boolean getConfState()
- Specified by:
getConfStatein interfaceorg.ietf.jgss.GSSContext
-
getMIC
public byte[] getMIC(byte[] inBuf, int off, int len, org.ietf.jgss.MessageProp prop) throws org.ietf.jgss.GSSExceptionReturns a cryptographic MIC (message integrity check) of a specified message.- Specified by:
getMICin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
verifyMIC
public void verifyMIC(byte[] inTok, int tokOff, int tokLen, byte[] inMsg, int msgOff, int msgLen, org.ietf.jgss.MessageProp prop) throws org.ietf.jgss.GSSExceptionVerifies a cryptographic MIC (message integrity check) of a specified message.- Specified by:
verifyMICin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
initSecContext
public int initSecContext(java.io.InputStream in, java.io.OutputStream out) throws org.ietf.jgss.GSSExceptionIt works just likeinitSecContextmethod. It reads one SSL token from input stream, callsinitSecContextmethod and writes the output token to the output stream (if any) SSL token is not read on the initial call.- Specified by:
initSecContextin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
acceptSecContext
public void acceptSecContext(java.io.InputStream in, java.io.OutputStream out) throws org.ietf.jgss.GSSExceptionIt works just likeacceptSecContextmethod. It reads one SSL token from input stream, callsacceptSecContextmethod and writes the output token to the output stream (if any)- Specified by:
acceptSecContextin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
getSrcName
public org.ietf.jgss.GSSName getSrcName() throws org.ietf.jgss.GSSException- Specified by:
getSrcNamein interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
getTargName
public org.ietf.jgss.GSSName getTargName() throws org.ietf.jgss.GSSException- Specified by:
getTargNamein interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
requestInteg
public void requestInteg(boolean state) throws org.ietf.jgss.GSSException- Specified by:
requestIntegin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
getIntegState
public boolean getIntegState()
- Specified by:
getIntegStatein interfaceorg.ietf.jgss.GSSContext
-
requestSequenceDet
public void requestSequenceDet(boolean state) throws org.ietf.jgss.GSSException- Specified by:
requestSequenceDetin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
getSequenceDetState
public boolean getSequenceDetState()
- Specified by:
getSequenceDetStatein interfaceorg.ietf.jgss.GSSContext
-
requestReplayDet
public void requestReplayDet(boolean state) throws org.ietf.jgss.GSSException- Specified by:
requestReplayDetin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
getReplayDetState
public boolean getReplayDetState()
- Specified by:
getReplayDetStatein interfaceorg.ietf.jgss.GSSContext
-
requestAnonymity
public void requestAnonymity(boolean state) throws org.ietf.jgss.GSSException- Specified by:
requestAnonymityin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
getAnonymityState
public boolean getAnonymityState()
- Specified by:
getAnonymityStatein interfaceorg.ietf.jgss.GSSContext
-
requestMutualAuth
public void requestMutualAuth(boolean state) throws org.ietf.jgss.GSSException- Specified by:
requestMutualAuthin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
getMutualAuthState
public boolean getMutualAuthState()
- Specified by:
getMutualAuthStatein interfaceorg.ietf.jgss.GSSContext
-
generateCertRequest
protected byte[] generateCertRequest(java.security.cert.X509Certificate cert) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
verifyDelegatedCert
protected void verifyDelegatedCert(java.security.cert.X509Certificate certificate) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
checkContext
protected void checkContext() throws org.ietf.jgss.GSSException- Throws:
org.ietf.jgss.GSSException
-
setGssMode
protected void setGssMode(java.lang.Object value) throws org.ietf.jgss.GSSException- Throws:
org.ietf.jgss.GSSException
-
setDelegationType
protected void setDelegationType(java.lang.Object value) throws org.ietf.jgss.GSSException- Throws:
org.ietf.jgss.GSSException
-
setCheckContextExpired
protected void setCheckContextExpired(java.lang.Object value) throws org.ietf.jgss.GSSException- Throws:
org.ietf.jgss.GSSException
-
setRejectLimitedProxy
protected void setRejectLimitedProxy(java.lang.Object value) throws org.ietf.jgss.GSSException- Throws:
org.ietf.jgss.GSSException
-
setRequireClientAuth
protected void setRequireClientAuth(java.lang.Object value) throws org.ietf.jgss.GSSException- Throws:
org.ietf.jgss.GSSException
-
setRequireAuthzWithDelegation
protected void setRequireAuthzWithDelegation(java.lang.Object value) throws org.ietf.jgss.GSSException- Throws:
org.ietf.jgss.GSSException
-
setAcceptNoClientCerts
protected void setAcceptNoClientCerts(java.lang.Object value) throws org.ietf.jgss.GSSException- Throws:
org.ietf.jgss.GSSException
-
setProxyPolicyHandlers
protected void setProxyPolicyHandlers(java.lang.Object value) throws org.ietf.jgss.GSSException- Throws:
org.ietf.jgss.GSSException
-
setTrustedCertificates
protected void setTrustedCertificates(java.lang.Object value) throws org.ietf.jgss.GSSException- Throws:
org.ietf.jgss.GSSException
-
setOption
public void setOption(org.ietf.jgss.Oid option, java.lang.Object value) throws org.ietf.jgss.GSSExceptionDescription copied from interface:ExtendedGSSContextSets a context option. It can be called by context initiator or acceptor but prior to the first call to initSecContext, acceptSecContext, initDelegation or acceptDelegation.- Specified by:
setOptionin interfaceExtendedGSSContext- Parameters:
option- option type.value- option value.- Throws:
org.ietf.jgss.GSSException- containing the following major error codes:GSSException.FAILURE
-
getOption
public java.lang.Object getOption(org.ietf.jgss.Oid option) throws org.ietf.jgss.GSSExceptionDescription copied from interface:ExtendedGSSContextGets a context option. It can be called by context initiator or acceptor.- Specified by:
getOptionin interfaceExtendedGSSContext- Parameters:
option- option type.- Returns:
- value option value. Maybe be null.
- Throws:
org.ietf.jgss.GSSException- containing the following major error codes:GSSException.FAILURE
-
initDelegation
public byte[] initDelegation(org.ietf.jgss.GSSCredential credential, org.ietf.jgss.Oid mechanism, int lifetime, byte[] buf, int off, int len) throws org.ietf.jgss.GSSExceptionInitiate the delegation of a credential. This function drives the initiating side of the credential delegation process. It is expected to be called in tandem with theacceptDelegationfunction.
The behavior of this function can be modified byGSSConstants.DELEGATION_TYPEandGSSConstants.GSS_MODEcontext options. TheGSSConstants.DELEGATION_TYPEoption controls delegation type to be performed. TheGSSConstants.GSS_MODEoption if set toGSIConstants.MODE_SSLresults in tokens that are not wrapped.- Specified by:
initDelegationin interfaceExtendedGSSContext- Parameters:
credential- The credential to be delegated. May be null in which case the credential associated with the security context is used.mechanism- The desired security mechanism. May be null.lifetime- The requested period of validity (seconds) of the delegated credential.- Returns:
- A token that should be passed to
acceptDelegationifisDelegationFinishedreturns false. May be null. - Throws:
org.ietf.jgss.GSSException- containing the following major error codes:GSSException.FAILURE
-
acceptDelegation
public byte[] acceptDelegation(int lifetime, byte[] buf, int off, int len) throws org.ietf.jgss.GSSExceptionAccept a delegated credential. This function drives the accepting side of the credential delegation process. It is expected to be called in tandem with theinitDelegationfunction.
The behavior of this function can be modified byGSSConstants.GSS_MODEcontext option. TheGSSConstants.GSS_MODEoption if set toGSIConstants.MODE_SSLresults in tokens that are not wrapped.- Specified by:
acceptDelegationin interfaceExtendedGSSContext- Parameters:
lifetime- The requested period of validity (seconds) of the delegated credential.- Returns:
- A token that should be passed to
initDelegationifisDelegationFinishedreturns false. May be null. - Throws:
org.ietf.jgss.GSSException- containing the following major error codes:GSSException.FAILURE
-
getDelegatedCredential
public org.ietf.jgss.GSSCredential getDelegatedCredential()
Description copied from interface:ExtendedGSSContextReturns the delegated credential that was delegated using theinitDelegationandacceptDelegationfunctions. This is to be called on the delegation accepting side once onceisDelegationFinishedreturns true.- Specified by:
getDelegatedCredentialin interfaceExtendedGSSContext- Returns:
- The delegated credential. Might be null if credential delegation is not finished.
-
isDelegationFinished
public boolean isDelegationFinished()
Description copied from interface:ExtendedGSSContextUsed during delegation to determine the state of the delegation.- Specified by:
isDelegationFinishedin interfaceExtendedGSSContext- Returns:
- true if delegation was completed, false otherwise.
-
inquireByOid
public java.lang.Object inquireByOid(org.ietf.jgss.Oid oid) throws org.ietf.jgss.GSSExceptionRetrieves arbitrary data about this context. Currently supported oid:-
GSSConstants.X509_CERT_CHAINreturns certificate chain of the peer (X509Certificate[]).
- Specified by:
inquireByOidin interfaceExtendedGSSContext- Parameters:
oid- the oid of the information desired.- Returns:
- the information desired. Might be null.
- Throws:
org.ietf.jgss.GSSException- containing the following major error codes:GSSException.FAILURE
-
-
setBannedCiphers
public void setBannedCiphers(java.lang.String[] ciphers)
Description copied from interface:ExtendedGSSContextSpecifies a list of ciphers that will not be used.- Specified by:
setBannedCiphersin interfaceExtendedGSSContext- Parameters:
ciphers- The list of banned ciphers.
-
getWrapSizeLimit
public int getWrapSizeLimit(int qop, boolean confReq, int maxTokenSize) throws org.ietf.jgss.GSSExceptionCurrently not implemented.- Specified by:
getWrapSizeLimitin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
wrap
public void wrap(java.io.InputStream inStream, java.io.OutputStream outStream, org.ietf.jgss.MessageProp msgProp) throws org.ietf.jgss.GSSExceptionCurrently not implemented.- Specified by:
wrapin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
unwrap
public void unwrap(java.io.InputStream inStream, java.io.OutputStream outStream, org.ietf.jgss.MessageProp msgProp) throws org.ietf.jgss.GSSExceptionCurrently not implemented.- Specified by:
unwrapin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
getMIC
public void getMIC(java.io.InputStream inStream, java.io.OutputStream outStream, org.ietf.jgss.MessageProp msgProp) throws org.ietf.jgss.GSSExceptionCurrently not implemented.- Specified by:
getMICin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
verifyMIC
public void verifyMIC(java.io.InputStream tokStream, java.io.InputStream msgStream, org.ietf.jgss.MessageProp msgProp) throws org.ietf.jgss.GSSExceptionCurrently not implemented.- Specified by:
verifyMICin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
setChannelBinding
public void setChannelBinding(org.ietf.jgss.ChannelBinding cb) throws org.ietf.jgss.GSSExceptionCurrently not implemented.- Specified by:
setChannelBindingin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
isTransferable
public boolean isTransferable() throws org.ietf.jgss.GSSExceptionCurrently not implemented.- Specified by:
isTransferablein interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
export
public byte[] export() throws org.ietf.jgss.GSSExceptionCurrently not implemented.- Specified by:
exportin interfaceorg.ietf.jgss.GSSContext- Throws:
org.ietf.jgss.GSSException
-
-