Home
last modified time | relevance | path

Searched refs:principal (Results 1 – 13 of 13) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/x500/
DX500PrincipalTest.java281 X500Principal principal = new X500Principal( in test_ConstructorLjava_lang_String() local
283 String name = principal.getName(); in test_ConstructorLjava_lang_String()
306 X500Principal principal = new X500Principal( in test_getNameLjava_lang_String() local
308 String canonical = principal.getName(X500Principal.CANONICAL); in test_getNameLjava_lang_String()
352 X500Principal principal = new X500Principal(is); in testStreamPosition() local
353 String s = principal.toString(); in testStreamPosition()
373 X500Principal principal = new X500Principal(is); in testStreamPosition_0() local
374 String s = principal.toString(); in testStreamPosition_0()
400 X500Principal principal = new X500Principal(is); in testStreamPosition_1() local
402 String s = principal.getName(X500Principal.RFC1779); in testStreamPosition_1()
[all …]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DCertificateStub.java41 Principal principal; field in CertificateStub
44 public CertificateStub(String format, Principal guarantor, Principal principal, PublicKey key){ in CertificateStub() argument
47 this.principal = principal; in CertificateStub()
91 return principal; in getPrincipal()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DDistinguishedNameParserTest.java55 X500Principal principal = new X500Principal(dn); in assertCns() local
56 DistinguishedNameParser parser = new DistinguishedNameParser(principal); in assertCns()
/libcore/luni/src/main/java/java/security/
DIdentityScope.java133 public Identity getIdentity(Principal principal) { in getIdentity() argument
134 return getIdentity(principal.getName()); in getIdentity()
/libcore/luni/src/test/java/libcore/xml/
DXsltXPathConformanceTestSuite.java249 final File principal; in create() local
256 principal = findFile(outBase, principalElement.getTextContent()); in create()
259 principal = null; in create()
264 principalStylesheet, principal, operation, compareAs); in create()
318 private final File principal; field in XsltXPathConformanceTestSuite.XsltTest
330 File principalData, File principalStylesheet, File principal, in XsltTest() argument
339 this.principal = principal; in XsltTest()
344 XsltTest(File principalData, File principalStylesheet, File principal) { in XsltTest() argument
346 principalData, principalStylesheet, principal, "standard", "XML"); in XsltTest()
396 assertNodesAreEquivalent(principal, ((DOMResult) result).getNode()); in test()
/libcore/luni/src/main/java/java/security/acl/
DAcl.java159 boolean checkPermission(Principal principal, Permission permission); in checkPermission() argument
/libcore/luni/src/main/java/javax/net/ssl/
DDefaultHostnameVerifier.java82 X500Principal principal = certificate.getSubjectX500Principal(); in verifyHostName() local
84 String cn = new DistinguishedNameParser(principal).findMostSpecific("cn"); in verifyHostName()
DDistinguishedNameParser.java44 public DistinguishedNameParser(X500Principal principal) { in DistinguishedNameParser() argument
48 this.dn = principal.getName(X500Principal.RFC2253); in DistinguishedNameParser()
/libcore/luni/src/test/java/tests/security/cert/
DX509CRLSelector2Test.java514 private X500Principal principal = null; field in X509CRLSelector2Test.TestCRL
525 public TestCRL(X500Principal principal) { in TestCRL() argument
526 this.principal = principal; in TestCRL()
547 return principal; in getIssuerX500Principal()
DX509CertSelectorTest.java1619 public TestCert(X500Principal principal) { in TestCert() argument
1620 setIssuer(principal); in TestCert()
1621 setSubject(principal); in TestCert()
/libcore/luni/src/main/java/javax/security/auth/x500/
DX500Principal.java168 X500Principal principal = (X500Principal) o; in equals() local
169 return getCanonicalName().equals(principal.getCanonicalName()); in equals()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLContext.java221 public static void assertCertificateInKeyStore(Principal principal, in assertCertificateInKeyStore() argument
223 String subjectName = principal.getName(); in assertCertificateInKeyStore()
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java544 X500Principal principal = new X500Principal(subject); in createCa() local
546 principal, principal, in createCa()