org.exoplatform.services.security.sso.spnego
Class SpnegoParser

java.lang.Object
  extended by org.exoplatform.services.security.sso.spnego.SpnegoParser

public class SpnegoParser
extends Object

Parser for convering byte[] spnego tokens into nice objects.

Author:
Martin Algesten

Constructor Summary
SpnegoParser()
           
 
Method Summary
protected  String dump(byte[] token)
          Dumps the given token in a nice string.
 ApplicationConstructedObject parseInitToken(byte[] token)
          Parses an incoming NegTokenInit.
 NegTokenTarg parseTargToken(byte[] token)
          Parses a NegTokenTarg.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpnegoParser

public SpnegoParser()
Method Detail

parseInitToken

public ApplicationConstructedObject parseInitToken(byte[] token)
Parses an incoming NegTokenInit.

Parameters:
token - the byte array to parse.
Returns:
the object if no errors were detected or null if there were errors.

parseTargToken

public NegTokenTarg parseTargToken(byte[] token)
Parses a NegTokenTarg.

Parameters:
token - the byte array token.
Returns:
the parsed token if no error were encountered, or null if there were errors.

dump

protected String dump(byte[] token)
Dumps the given token in a nice string.

Parameters:
token - the source bytes.
Returns:
the result String.


Copyright © 2009 eXo Platform SAS. All Rights Reserved.