sun.security.mule.krb5.internal.ccache
Class CCacheOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.BufferedOutputStream
              extended by sun.security.mule.krb5.internal.util.KrbDataOutputStream
                  extended by sun.security.mule.krb5.internal.ccache.CCacheOutputStream
All Implemented Interfaces:
Closeable, Flushable, FileCCacheConstants

public class CCacheOutputStream
extends KrbDataOutputStream
implements FileCCacheConstants

This class implements a buffered output stream. It provides functions to write FCC-format data to a disk file.

Author:
Yanni Zhang

Field Summary
 
Fields inherited from class java.io.BufferedOutputStream
buf, count
 
Fields inherited from class java.io.FilterOutputStream
out
 
Fields inherited from interface sun.security.mule.krb5.internal.ccache.FileCCacheConstants
FCC_TAG_DELTATIME, KRB5_FCC_FVNO_1, KRB5_FCC_FVNO_2, KRB5_FCC_FVNO_3, KRB5_FCC_FVNO_4, KRB5_NT_UNKNOWN, MAXNAMELENGTH, TKT_FLG_FORWARDABLE, TKT_FLG_FORWARDED, TKT_FLG_HW_AUTH, TKT_FLG_INITIAL, TKT_FLG_INVALID, TKT_FLG_MAY_POSTDATE, TKT_FLG_POSTDATED, TKT_FLG_PRE_AUTH, TKT_FLG_PROXIABLE, TKT_FLG_PROXY, TKT_FLG_RENEWABLE
 
Constructor Summary
CCacheOutputStream(OutputStream os)
           
 
Method Summary
 void addCreds(Credentials creds)
          Writes a credentials in FCC format to this cache output stream.
 void writeHeader(PrincipalName p, int version)
           
 
Methods inherited from class sun.security.mule.krb5.internal.util.KrbDataOutputStream
write16, write32, write8
 
Methods inherited from class java.io.BufferedOutputStream
flush, write, write
 
Methods inherited from class java.io.FilterOutputStream
close, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CCacheOutputStream

public CCacheOutputStream(OutputStream os)
Method Detail

writeHeader

public void writeHeader(PrincipalName p,
                        int version)
                 throws IOException
Throws:
IOException

addCreds

public void addCreds(Credentials creds)
              throws IOException,
                     Asn1Exception
Writes a credentials in FCC format to this cache output stream.

Parameters:
creds - the credentials to be written to the output stream.
Throws:
IOException - if an I/O exception occurs.
Asn1Exception - if an Asn1Exception occurs.


Copyright © 2013. All Rights Reserved.