Searched defs:principal (Results 1 - 10 of 10) sorted by relevance

/libcore/luni/src/main/java/java/security/
H A DIdentityScope.java124 * Returns the {@code Identity} with the name of the specified principal or
126 * principal is present in this scope.
128 * @param principal
134 public Identity getIdentity(Principal principal) { argument
135 return getIdentity(principal.getName());
/libcore/luni/src/main/java/java/security/acl/
H A DAcl.java77 * positive</i> or <i>negative</i>) and principal, then the new entry is not added.
84 * already an entry of the same type for the same principal
111 * If the specified principal has no entry in this ACL, an empty set is
117 * principal's groups ({@link Group}) are collected. The positive (granted)
119 * principal belongs to, the negative (denied) permissions are the union of
120 * all group's negative permissions that the principal belongs to. If a
124 * the principal override the group permissions. The positive individual
130 * the principal to get the allowed permissions for.
131 * @return the set of allowed permissions for the specified principal.
145 * Checks whether the specified principal i
159 checkPermission(Principal principal, Permission permission) argument
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DCertificateStub.java41 Principal principal; field in class:CertificateStub
44 public CertificateStub(String format, Principal guarantor, Principal principal, PublicKey key){ argument
47 this.principal = principal;
91 return principal;
/libcore/luni/src/main/java/javax/net/ssl/
H A DDistinguishedNameParser.java41 public DistinguishedNameParser(X500Principal principal) { argument
42 this.dn = principal.getName(X500Principal.RFC2253);
/libcore/luni/src/test/java/libcore/xml/
H A DXsltXPathConformanceTestSuite.java196 * <input-file role="principal-data">attribset01.xml</input-file>
197 * <input-file role="principal-stylesheet">attribset01.xsl</input-file>
198 * <output-file role="principal" compare="XML">attribset01.out</output-file>
224 if (role.equals("principal-data")) {
226 } else if (role.equals("principal-stylesheet")) {
228 } else if (role.equals("principal")) {
242 + "principal=data and principal-stylesheet elements at " + name);
249 final File principal;
253 return new MisspecifiedTest("Expected <scenario> to have principal elemen
318 private final File principal; field in class:XsltXPathConformanceTestSuite.XsltTest
329 XsltTest(String category, String id, String purpose, String spec, File principalData, File principalStylesheet, File principal, String operation, String compareAs) argument
344 XsltTest(File principalData, File principalStylesheet, File principal) argument
[all...]
/libcore/luni/src/test/java/tests/security/cert/
H A DX509CRLSelector2Test.java514 private X500Principal principal = null; field in class:X509CRLSelector2Test.TestCRL
525 public TestCRL(X500Principal principal) { argument
526 this.principal = principal;
547 return principal;
H A DX509CertSelectorTest.java1749 public TestCert(X500Principal principal) { argument
1750 setIssuer(principal);
1751 setSubject(principal);
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLContext.java215 public static void assertCertificateInKeyStore(Principal principal, argument
217 String subjectName = principal.getName();
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DNativeCrypto.java199 public static int X509_NAME_hash(X500Principal principal) { argument
200 return X509_NAME_hash(principal, "SHA1");
202 public static int X509_NAME_hash_old(X500Principal principal) { argument
203 return X509_NAME_hash(principal, "MD5");
205 private static int X509_NAME_hash(X500Principal principal, String algorithm) { argument
207 byte[] digest = MessageDigest.getInstance(algorithm).digest(principal.getEncoded());
/libcore/luni/src/main/native/
H A Dorg_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp2133 * Returns an array containing all the X500 principal's bytes.
2152 X509_NAME* principal = sk_X509_NAME_value(names, i); local
2154 int len = i2d_X509_NAME(principal, NULL);
2167 int n = i2d_X509_NAME(principal, &p);
3095 jniThrowOutOfMemoryError(env, "Unable to allocate principal stack");
3100 ScopedLocalRef<jbyteArray> principal(env,
3102 if (principal.get() == NULL) {
3108 ScopedByteArrayRO buf(env, principal.get());
3118 throwSSLExceptionWithSslErrors(env, ssl, SSL_ERROR_NONE, "Error parsing principal");
3126 jniThrowOutOfMemoryError(env, "Unable to push principal");
[all...]

Completed in 1866 milliseconds