sun.security.mule.krb5.internal.ccache
Class CCacheOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.BufferedOutputStream
sun.security.mule.krb5.internal.util.KrbDataOutputStream
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
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CCacheOutputStream
public CCacheOutputStream(OutputStream os)
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.