aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/core/src/main/java/org/spongycastle/asn1/ASN1Null.java
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/spongycastle/core/src/main/java/org/spongycastle/asn1/ASN1Null.java')
-rw-r--r--libraries/spongycastle/core/src/main/java/org/spongycastle/asn1/ASN1Null.java67
1 files changed, 0 insertions, 67 deletions
diff --git a/libraries/spongycastle/core/src/main/java/org/spongycastle/asn1/ASN1Null.java b/libraries/spongycastle/core/src/main/java/org/spongycastle/asn1/ASN1Null.java
deleted file mode 100644
index 647060c1f..000000000
--- a/libraries/spongycastle/core/src/main/java/org/spongycastle/asn1/ASN1Null.java
+++ /dev/null
@@ -1,67 +0,0 @@
-package org.spongycastle.asn1;
-
-import java.io.IOException;
-
-/**
- * A NULL object.
- */
-public abstract class ASN1Null
- extends ASN1Primitive
-{
- /**
- * @deprecated use DERNull.INSTANCE
- */
- public ASN1Null()
- {
- }
-
- public static ASN1Null getInstance(Object o)
- {
- if (o instanceof ASN1Null)
- {
- return (ASN1Null)o;
- }
-
- if (o != null)
- {
- try
- {
- return ASN1Null.getInstance(ASN1Primitive.fromByteArray((byte[])o));
- }
- catch (IOException e)
- {
- throw new IllegalArgumentException("failed to construct NULL from byte[]: " + e.getMessage());
- }
- catch (ClassCastException e)
- {
- throw new IllegalArgumentException("unknown object in getInstance(): " + o.getClass().getName());
- }
- }
-
- return null;
- }
-
- public int hashCode()
- {
- return -1;
- }
-
- boolean asn1Equals(
- ASN1Primitive o)
- {
- if (!(o instanceof ASN1Null))
- {
- return false;
- }
-
- return true;
- }
-
- abstract void encode(ASN1OutputStream out)
- throws IOException;
-
- public String toString()
- {
- return "NULL";
- }
-}