org.jacorb.security.sas

Class GSSUPContextSpi

Implemented Interfaces:
GSSContextSpi

public final class GSSUPContextSpi
extends java.lang.Object
implements GSSContextSpi

This is the GSS-API Sercurity Provider Interface (SPI) for the GSSUP Context

Version:
$Id: GSSUPContextSpi.java,v 1.10 2004/05/06 12:40:01 nicolas Exp $

Author:
David Robison

Constructor Summary

GSSUPContextSpi(Provider provider, Oid mechOid, GSSNameSpi nameSpi, GSSCredentialSpi credSpi, int lifetime)

Method Summary

byte[]
acceptSecContext(InputStream inStream, int inLen)
void
dispose()
byte[]
export()
boolean
getAnonymityState()
boolean
getConfState()
boolean
getCredDelegState()
GSSCredentialSpi
getDelegCred()
boolean
getIntegState()
int
getLifetime()
void
getMIC(InputStream inStream, OutputStream outStream, MessageProp mp)
byte[]
getMIC(byte[] b1, int i1, int i2, MessageProp mp)
Oid
getMech()
boolean
getMutualAuthState()
Provider
getProvider()
boolean
getReplayDetState()
boolean
getSequenceDetState()
GSSNameSpi
getSrcName()
GSSNameSpi
getTargName()
int
getWrapSizeLimit(int i1, boolean b1, int i2)
byte[]
initSecContext(InputStream inStream, int inLen)
boolean
isEstablished()
boolean
isProtReady()
boolean
isTransferable()
void
requestAnonymity(boolean tf)
void
requestConf(boolean tf)
void
requestCredDeleg(boolean tf)
void
requestInteg(boolean tf)
void
requestLifetime(int lifetime)
void
requestMutualAuth(boolean tf)
void
requestReplayDet(boolean tf)
void
requestSequenceDet(boolean tf)
void
setChannelBinding(ChannelBinding cb)
void
unwrap(InputStream inStream, OutputStream outStream, MessageProp mp)
int
unwrap(InputStream inStream, byte[] b, int i1, MessageProp mp)
byte[]
unwrap(byte[] b, int i1, int i2, MessageProp mp)
int
unwrap(byte[] b1, int i1, int i2, byte[] b2, int i3, MessageProp mp)
void
verifyMIC(InputStream inStream1, InputStream inStream2, MessageProp mp)
void
verifyMIC(byte[] b1, int i1, int i2, byte[] b2, int i3, int i4, MessageProp mp)
void
wrap(InputStream inStream, OutputStream outStream, MessageProp mp)
byte[]
wrap(byte[] b, int i1, int i2, MessageProp mp)
void
wrap(byte[] b, int i1, int i2, OutputStream outStream, MessageProp mp)
int
wrap(byte[] b1, int i1, int i2, byte[] b2, int i3, MessageProp mp)

Constructor Details

GSSUPContextSpi

public GSSUPContextSpi(Provider provider,
                       Oid mechOid,
                       GSSNameSpi nameSpi,
                       GSSCredentialSpi credSpi,
                       int lifetime)

Method Details

acceptSecContext

public byte[] acceptSecContext(InputStream inStream,
                               int inLen)
            throws GSSException


dispose

public void dispose()
            throws GSSException


export

public byte[] export()
            throws GSSException


getAnonymityState

public boolean getAnonymityState()


getConfState

public boolean getConfState()


getCredDelegState

public boolean getCredDelegState()


getDelegCred

public GSSCredentialSpi getDelegCred()
            throws GSSException


getIntegState

public boolean getIntegState()


getLifetime

public int getLifetime()


getMIC

public void getMIC(InputStream inStream,
                   OutputStream outStream,
                   MessageProp mp)
            throws GSSException


getMIC

public byte[] getMIC(byte[] b1,
                     int i1,
                     int i2,
                     MessageProp mp)
            throws GSSException


getMech

public Oid getMech()
            throws GSSException


getMutualAuthState

public boolean getMutualAuthState()


getProvider

public Provider getProvider()


getReplayDetState

public boolean getReplayDetState()


getSequenceDetState

public boolean getSequenceDetState()


getSrcName

public GSSNameSpi getSrcName()
            throws GSSException


getTargName

public GSSNameSpi getTargName()
            throws GSSException


getWrapSizeLimit

public int getWrapSizeLimit(int i1,
                            boolean b1,
                            int i2)
            throws GSSException


initSecContext

public byte[] initSecContext(InputStream inStream,
                             int inLen)
            throws GSSException


isEstablished

public boolean isEstablished()


isProtReady

public boolean isProtReady()


isTransferable

public boolean isTransferable()
            throws GSSException


requestAnonymity

public void requestAnonymity(boolean tf)
            throws GSSException


requestConf

public void requestConf(boolean tf)
            throws GSSException


requestCredDeleg

public void requestCredDeleg(boolean tf)
            throws GSSException


requestInteg

public void requestInteg(boolean tf)
            throws GSSException


requestLifetime

public void requestLifetime(int lifetime)
            throws GSSException


requestMutualAuth

public void requestMutualAuth(boolean tf)
            throws GSSException


requestReplayDet

public void requestReplayDet(boolean tf)
            throws GSSException


requestSequenceDet

public void requestSequenceDet(boolean tf)
            throws GSSException


setChannelBinding

public void setChannelBinding(ChannelBinding cb)
            throws GSSException


unwrap

public void unwrap(InputStream inStream,
                   OutputStream outStream,
                   MessageProp mp)
            throws GSSException


unwrap

public int unwrap(InputStream inStream,
                  byte[] b,
                  int i1,
                  MessageProp mp)
            throws GSSException


unwrap

public byte[] unwrap(byte[] b,
                     int i1,
                     int i2,
                     MessageProp mp)
            throws GSSException


unwrap

public int unwrap(byte[] b1,
                  int i1,
                  int i2,
                  byte[] b2,
                  int i3,
                  MessageProp mp)
            throws GSSException


verifyMIC

public void verifyMIC(InputStream inStream1,
                      InputStream inStream2,
                      MessageProp mp)
            throws GSSException


verifyMIC

public void verifyMIC(byte[] b1,
                      int i1,
                      int i2,
                      byte[] b2,
                      int i3,
                      int i4,
                      MessageProp mp)
            throws GSSException


wrap

public void wrap(InputStream inStream,
                 OutputStream outStream,
                 MessageProp mp)
            throws GSSException


wrap

public byte[] wrap(byte[] b,
                   int i1,
                   int i2,
                   MessageProp mp)
            throws GSSException


wrap

public void wrap(byte[] b,
                 int i1,
                 int i2,
                 OutputStream outStream,
                 MessageProp mp)
            throws GSSException


wrap

public int wrap(byte[] b1,
                int i1,
                int i2,
                byte[] b2,
                int i3,
                MessageProp mp)
            throws GSSException