Creates a new UserNotice
instance.
Useful from reconstructing a UserNotice
instance
from its encodable/encoded form.
if (as.size() == 2)
{
noticeRef = NoticeReference.getInstance(as.getObjectAt(0));
explicitText = DisplayText.getInstance(as.getObjectAt(1));
}
else if (as.size() == 1)
{
if (as.getObjectAt(0).getDERObject() instanceof ASN1Sequence)
{
noticeRef = NoticeReference.getInstance(as.getObjectAt(0));
}
else
{
explicitText = DisplayText.getInstance(as.getObjectAt(0));
}
}
else
{
throw new IllegalArgumentException("Bad sequence size: " + as.size());
}