org.jacorb.security.sas
Class GSSUPContextSpi

java.lang.Object
  extended byorg.jacorb.security.sas.GSSUPContextSpi

public final class GSSUPContextSpi
extends java.lang.Object

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(java.security.Provider provider, org.ietf.jgss.Oid mechOid, GSSNameSpi nameSpi, GSSCredentialSpi credSpi, int lifetime)
           
 
Method Summary
 byte[] acceptSecContext(java.io.InputStream inStream, int inLen)
           
 void dispose()
           
 byte[] export()
           
 boolean getAnonymityState()
           
 boolean getConfState()
           
 boolean getCredDelegState()
           
 GSSCredentialSpi getDelegCred()
           
 boolean getIntegState()
           
 int getLifetime()
           
 org.ietf.jgss.Oid getMech()
           
 byte[] getMIC(byte[] b1, int i1, int i2, org.ietf.jgss.MessageProp mp)
           
 void getMIC(java.io.InputStream inStream, java.io.OutputStream outStream, org.ietf.jgss.MessageProp mp)
           
 boolean getMutualAuthState()
           
 java.security.Provider getProvider()
           
 boolean getReplayDetState()
           
 boolean getSequenceDetState()
           
 GSSNameSpi getSrcName()
           
 GSSNameSpi getTargName()
           
 int getWrapSizeLimit(int i1, boolean b1, int i2)
           
 byte[] initSecContext(java.io.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(org.ietf.jgss.ChannelBinding cb)
           
 int unwrap(byte[] b1, int i1, int i2, byte[] b2, int i3, org.ietf.jgss.MessageProp mp)
           
 byte[] unwrap(byte[] b, int i1, int i2, org.ietf.jgss.MessageProp mp)
           
 int unwrap(java.io.InputStream inStream, byte[] b, int i1, org.ietf.jgss.MessageProp mp)
           
 void unwrap(java.io.InputStream inStream, java.io.OutputStream outStream, org.ietf.jgss.MessageProp mp)
           
 void verifyMIC(byte[] b1, int i1, int i2, byte[] b2, int i3, int i4, org.ietf.jgss.MessageProp mp)
           
 void verifyMIC(java.io.InputStream inStream1, java.io.InputStream inStream2, org.ietf.jgss.MessageProp mp)
           
 int wrap(byte[] b1, int i1, int i2, byte[] b2, int i3, org.ietf.jgss.MessageProp mp)
           
 byte[] wrap(byte[] b, int i1, int i2, org.ietf.jgss.MessageProp mp)
           
 void wrap(byte[] b, int i1, int i2, java.io.OutputStream outStream, org.ietf.jgss.MessageProp mp)
           
 void wrap(java.io.InputStream inStream, java.io.OutputStream outStream, org.ietf.jgss.MessageProp mp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSSUPContextSpi

public GSSUPContextSpi(java.security.Provider provider,
                       org.ietf.jgss.Oid mechOid,
                       GSSNameSpi nameSpi,
                       GSSCredentialSpi credSpi,
                       int lifetime)
Method Detail

getProvider

public java.security.Provider getProvider()

requestLifetime

public void requestLifetime(int lifetime)
                     throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

requestMutualAuth

public void requestMutualAuth(boolean tf)
                       throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

requestReplayDet

public void requestReplayDet(boolean tf)
                      throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

requestSequenceDet

public void requestSequenceDet(boolean tf)
                        throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

requestCredDeleg

public void requestCredDeleg(boolean tf)
                      throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

requestAnonymity

public void requestAnonymity(boolean tf)
                      throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

requestConf

public void requestConf(boolean tf)
                 throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

requestInteg

public void requestInteg(boolean tf)
                  throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

setChannelBinding

public void setChannelBinding(org.ietf.jgss.ChannelBinding cb)
                       throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

getCredDelegState

public boolean getCredDelegState()

getMutualAuthState

public boolean getMutualAuthState()

getReplayDetState

public boolean getReplayDetState()

getSequenceDetState

public boolean getSequenceDetState()

getAnonymityState

public boolean getAnonymityState()

isTransferable

public boolean isTransferable()
                       throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

isProtReady

public boolean isProtReady()

getConfState

public boolean getConfState()

getIntegState

public boolean getIntegState()

getLifetime

public int getLifetime()

isEstablished

public boolean isEstablished()

getSrcName

public GSSNameSpi getSrcName()
                      throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

getTargName

public GSSNameSpi getTargName()
                       throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

getMech

public org.ietf.jgss.Oid getMech()
                          throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

getDelegCred

public GSSCredentialSpi getDelegCred()
                              throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

initSecContext

public byte[] initSecContext(java.io.InputStream inStream,
                             int inLen)
                      throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

acceptSecContext

public byte[] acceptSecContext(java.io.InputStream inStream,
                               int inLen)
                        throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

getWrapSizeLimit

public int getWrapSizeLimit(int i1,
                            boolean b1,
                            int i2)
                     throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

wrap

public void wrap(java.io.InputStream inStream,
                 java.io.OutputStream outStream,
                 org.ietf.jgss.MessageProp mp)
          throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

wrap

public byte[] wrap(byte[] b,
                   int i1,
                   int i2,
                   org.ietf.jgss.MessageProp mp)
            throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

wrap

public int wrap(byte[] b1,
                int i1,
                int i2,
                byte[] b2,
                int i3,
                org.ietf.jgss.MessageProp mp)
         throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

wrap

public void wrap(byte[] b,
                 int i1,
                 int i2,
                 java.io.OutputStream outStream,
                 org.ietf.jgss.MessageProp mp)
          throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

unwrap

public void unwrap(java.io.InputStream inStream,
                   java.io.OutputStream outStream,
                   org.ietf.jgss.MessageProp mp)
            throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

unwrap

public byte[] unwrap(byte[] b,
                     int i1,
                     int i2,
                     org.ietf.jgss.MessageProp mp)
              throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

unwrap

public int unwrap(byte[] b1,
                  int i1,
                  int i2,
                  byte[] b2,
                  int i3,
                  org.ietf.jgss.MessageProp mp)
           throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

unwrap

public int unwrap(java.io.InputStream inStream,
                  byte[] b,
                  int i1,
                  org.ietf.jgss.MessageProp mp)
           throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

getMIC

public void getMIC(java.io.InputStream inStream,
                   java.io.OutputStream outStream,
                   org.ietf.jgss.MessageProp mp)
            throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

getMIC

public byte[] getMIC(byte[] b1,
                     int i1,
                     int i2,
                     org.ietf.jgss.MessageProp mp)
              throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

verifyMIC

public void verifyMIC(java.io.InputStream inStream1,
                      java.io.InputStream inStream2,
                      org.ietf.jgss.MessageProp mp)
               throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

verifyMIC

public void verifyMIC(byte[] b1,
                      int i1,
                      int i2,
                      byte[] b2,
                      int i3,
                      int i4,
                      org.ietf.jgss.MessageProp mp)
               throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

export

public byte[] export()
              throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

dispose

public void dispose()
             throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException