org.opensaml.artifact
Interface ByteSizedSequence

All Known Subinterfaces:
Artifact, Artifact.RemainingArtifact, Artifact.TypeCode
All Known Implementing Classes:
SAMLArtifact, SAMLArtifact.RemainingArtifact, SAMLArtifact.TypeCode, TwoByteSequence

public interface ByteSizedSequence

A ByteSizedSequence is an arbitrary sequence of bytes. The implementation determines the size of the sequence.

Author:
Tom Scavo

Method Summary
 boolean equals(Object o)
          Equate two sequences of bytes.
 byte[] getBytes()
          Get the actual bytes of this sequence of bytes.
 int hashCode()
          Compute the hashcode of this sequences of bytes.
 int size()
          Get the size of this sequence of bytes.
 String toString()
          Get a string representation of this sequence of bytes.
 

Method Detail

size

public int size()
Get the size of this sequence of bytes.

Returns:
the size of the sequence

getBytes

public byte[] getBytes()
Get the actual bytes of this sequence of bytes.

Returns:
the actual sequence of bytes

toString

public String toString()
Get a string representation of this sequence of bytes. This method overrides the corresponding method of the superclass.

Returns:
a string representation of this sequence of bytes

equals

public boolean equals(Object o)
Equate two sequences of bytes.

Returns:
true if and only if this sequence of bytes is equivalent to the given object

hashCode

public int hashCode()
Compute the hashcode of this sequences of bytes.

Returns:
the hashcode


Copyright ? 2005 UCAID. All Rights Reserved.