blob: 4205a5fd4744c89917cf745c8a96b76ab4dd116c [file] [log] [blame]
/* GENERATED SOURCE. DO NOT MODIFY. */
package com.android.internal.org.bouncycastle.operator;
import com.android.internal.org.bouncycastle.asn1.x509.AlgorithmIdentifier;
/**
* @hide This class is not part of the Android public SDK API
*/
public class GenericKey
{
private AlgorithmIdentifier algorithmIdentifier;
private Object representation;
/**
* @deprecated provide an AlgorithmIdentifier.
* @param representation key data
*/
public GenericKey(Object representation)
{
this.algorithmIdentifier = null;
this.representation = representation;
}
public GenericKey(AlgorithmIdentifier algorithmIdentifier, byte[] representation)
{
this.algorithmIdentifier = algorithmIdentifier;
this.representation = representation;
}
protected GenericKey(AlgorithmIdentifier algorithmIdentifier, Object representation)
{
this.algorithmIdentifier = algorithmIdentifier;
this.representation = representation;
}
public AlgorithmIdentifier getAlgorithmIdentifier()
{
return algorithmIdentifier;
}
public Object getRepresentation()
{
return representation;
}
}