/************************************************************************* * * * CERT-CVC: EAC 1.11 Card Verifiable Certificate Library * * * * This software is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or any later version. * * * * See terms of license at gnu.org. * * * *************************************************************************/ package org.ejbca.cvc; /** * Internal object representing an access rights value of an unknown type. These * objects should be replaced by AuthorizationField.fixEnumTypes and should * never occur outside of CERT-CVC. * * @author Samuel Lidén Borell, PrimeKey Solutions AB * @version $Id: AccessRightsRawValue.java 18548 2014-03-04 11:46:03Z samuellb $ */ public class AccessRightsRawValue implements AccessRights { private static final String EXCEPTION_MSG = "Access Right object does not know its type/OID yet. This is a bug."; private final byte[] bytes; AccessRightsRawValue(byte[] bytes) { this.bytes = bytes; } @Override public byte[] getEncoded() { return bytes; } @Override public String name() { throw new IllegalStateException(EXCEPTION_MSG); } }