| org.ietf.jgss.OidTest
OidTest | public class OidTest extends TestCase (Code) | | Tests Oid class
ASN.1 encodings and string values are base on X.690 specification.
See Also: http://asn1.elibel.tm.fr/en/standards/index.htm |
testEncodingRulesViolation | public void testEncodingRulesViolation() throws Exception(Code) | | Tests 2 cases of Encoding Rules violation.
Both cases should be in testInvalidOIDEncodings().
|
testExtraBytes | public void testExtraBytes() throws Exception(Code) | | Oid encoding contains 2 extra bytes.
Two Oid constructors are verified:
- Oid(byte[] oid): GSSException is thrown
- Oid(InputStream oid): oid object is created,
input stream contains extra bytes
|
testInvalidOIDEncodings | public void testInvalidOIDEncodings()(Code) | | Oid constructors Oid(byte[] oid) and Oid(InputStream oid)
are tested in case when an invalid oid encoding is passed as a parameter
|
testInvalidOIDString | public void testInvalidOIDString()(Code) | | Oid constructor Oid(String oid) is tested in case when
an invalid oid string is passed as a parameter
|
testLeadingZero | public void testLeadingZero() throws Exception(Code) | | Oid constructor Oid(String oid) is tested in case when
string oid contains a subidentifier with leading zero
|
testValidOid | public void testValidOid()(Code) | | Testing: Constructors, toString(), equals(), getDER()
|
test_ConstructorLbyte_array | final public void test_ConstructorLbyte_array() throws GSSException(Code) | | |
test_ConstructorLjava_io_InputStream | final public void test_ConstructorLjava_io_InputStream() throws GSSException(Code) | | |
test_ConstructorLjava_lang_String | final public void test_ConstructorLjava_lang_String()(Code) | | |
|
|