Package com.oss.asn1
Class RelaySafeSet
java.lang.Object
com.oss.asn1.AbstractData
com.oss.asn1.AbstractCollection
com.oss.asn1.Set
com.oss.asn1.RelaySafeSet
- All Implemented Interfaces:
RelaySafe
,Serializable
,Cloneable
The RelaySafeSet class represents the ASN.1 SET type but has
additionally the ability to store unknown extensions and make
them available to the coder for further relaying.
- Since:
- ASN.1/Java 6.0
- See Also:
-
Field Summary
Fields inherited from class com.oss.asn1.AbstractData
EQUALS, GREATER_THAN, LESS_THAN
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone 'this' object.void
delete()
Destroy the instance of the AbstractData.final int
Returns number of unknown extensions available for relaying.final void
Removes all unknown extensions, saved for the relaying.final void
setUnknownExtension
(int index, byte[] ext) Methods inherited from class com.oss.asn1.Set
equalTo, getTypeName
Methods inherited from class com.oss.asn1.AbstractCollection
numComponents
Methods inherited from class com.oss.asn1.AbstractData
abstractEqualTo, equals, hashCode, isEncodable, isPDU, isValid, toString, toString
-
Method Details
-
numberOfUnknownExtensions
public final int numberOfUnknownExtensions()Returns number of unknown extensions available for relaying.- Specified by:
numberOfUnknownExtensions
in interfaceRelaySafe
- Returns:
- the number of unknown extensions.
-
removeAllUnknownExtensions
public final void removeAllUnknownExtensions()Removes all unknown extensions, saved for the relaying.- Specified by:
removeAllUnknownExtensions
in interfaceRelaySafe
-
setUnknownExtension
public final void setUnknownExtension(int index, byte[] ext) -
clone
Clone 'this' object.- Returns:
- a deep copy of 'this' object.
-
delete
public void delete()Destroy the instance of the AbstractData. The contract of this method is to facilitate garbage collection by explicit destruction of the data that is no longer needed.- Overrides:
delete
in classAbstractData
-