APIdia Launch Partner
Top Description Constructors Methods
sun.security.krb5.internal.ccache

public Class CCacheOutputStream

extends KrbDataOutputStream
implements FileCCacheConstants
Class Inheritance
All Implemented Interfaces
sun.security.krb5.internal.ccache.FileCCacheConstants
Imports
java.io.IOException, .OutputStream, sun.security.krb5.internal.util.KrbDataOutputStream, sun.security.krb5.*, sun.security.krb5.internal.*

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
addCreds(Credentials
the credentials to be written to the output stream.
creds
)

Writes a credentials in FCC format to this cache output stream.

pack-priv void
public void
writeHeader(PrincipalName p, int version)

pack-priv void
Inherited from sun.security.krb5.internal.util.KrbDataOutputStream:
write16write32write8

Constructor Detail

CCacheOutputStreamback to summary
public CCacheOutputStream(OutputStream os)

Method Detail

addConfigEntryback to summary
public void addConfigEntry(PrincipalName cname, CredentialsCache.ConfigEntry e) throws IOException
addCredsback to summary
public void addCreds(Credentials creds) throws IOException, Asn1Exception

Writes a credentials in FCC format to this cache output stream.

Parameters
creds:Credentials

the credentials to be written to the output stream.

Exceptions
IOException:
if an I/O exception occurs.
Asn1Exception:
if an Asn1Exception occurs.
writeFlagsback to summary
pack-priv void writeFlags(TicketFlags flags) throws IOException
writeHeaderback to summary
public void writeHeader(PrincipalName p, int version) throws IOException
writeTicketback to summary
pack-priv void writeTicket(Ticket t) throws IOException, Asn1Exception