TLSGostKeyTransportBlob extends ASN1Object { public static TLSGostKeyTransportBlob getInstance(Object obj) { if (obj instanceof TLSGostKeyTransportBlob) { return (TLSGostKeyTransportBlob) obj; } if (obj != null) { return new TLSGostKeyTransportBlob(ASN1Sequence.getInstance(obj)); } return null; } private  TLSGostKeyTransportBlob(ASN1Sequence seq);  TLSGostKeyTransportBlob(GostR3410KeyTransport keyBlob);  TLSGostKeyTransportBlob(GostR3410KeyTransport keyBlob, DERSequence proxyKeyBlobs); static TLSGostKeyTransportBlob getInstance(Object obj); GostR3410KeyTransport getKeyBlob(); DERSequence getProxyKeyBlobs(); ASN1Primitive toASN1Primitive();  }
@Test public void testGetInstance() { byte[] messageBytes = ArrayConverter .hexStringToByteArray("304330413028042083BE410A078B313050F47E89124DE9DCEC591B770D0AB638712E6F8412A874BA04046EE7685FA01506092A8503070102050101040850D55A4BB4D33355"); TLSGostKeyTransportBlob blob = TLSGostKeyTransportBlob.getInstance(messageBytes); byte[] expected = ArrayConverter .hexStringToByteArray("83BE410A078B313050F47E89124DE9DCEC591B770D0AB638712E6F8412A874BA"); byte[] actual = blob.getKeyBlob().getSessionEncryptedKey().getEncryptedKey(); assertArrayEquals(expected, actual); expected = ArrayConverter.hexStringToByteArray("6EE7685F"); actual = blob.getKeyBlob().getSessionEncryptedKey().getMacKey(); assertArrayEquals(expected, actual); }