Home
last modified time | relevance | path

Searched refs:getPrincipals (Results 1 – 9 of 9) sorted by relevance

/libcore/luni/src/test/java/libcore/javax/security/auth/
DSubjectTest.java51 public void getPrincipals() { in getPrincipals() method in SubjectTest
52 assertEquals(set, subject.getPrincipals()); in getPrincipals()
54 assertEquals(set, subject.getPrincipals(PrincipalImpl.class)); in getPrincipals()
55 assertEquals(set, subject.getPrincipals(Principal.class)); in getPrincipals()
57 assertEquals(0, subject.getPrincipals(X500Name.class).size()); in getPrincipals()
DPrivateCredentialPermissionTest.java66 public void getPrincipals() { in getPrincipals() method in PrivateCredentialPermissionTest
67 assertNull(permission.getPrincipals()); in getPrincipals()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/
DSubjectTest.java49 assertTrue("Set of principal is not empty", s.getPrincipals().isEmpty()); in test_Constructor_01()
280 subject.getPrincipals().removeAll(null); in testSecureTest_removeAllNull_throwsException()
290 subject.getPrincipals().retainAll(null); in testSecureTest_retainAllNull_throwsException()
298 return new Object[] { subject, subject.getPrincipals(), in getSerializationData()
/libcore/ojluni/src/main/java/java/security/
DPrincipal.java94 return subject.getPrincipals().contains(this); in implies()
DProtectionDomain.java49 public final Principal[] getPrincipals() { return null; } in getPrincipals() method in ProtectionDomain
/libcore/ojluni/src/main/java/javax/security/auth/
DPrivateCredentialPermission.java46 public String[][] getPrincipals() { return null; } in getPrincipals() method in PrivateCredentialPermission
DSubject.java585 public Set<Principal> getPrincipals() {
616 public <T extends Principal> Set<T> getPrincipals(Class<T> c) {
1064 subject.getPrincipals()));
1187 subject.getPrincipals()));
1416 Subject.this.getPrincipals()));
/libcore/luni/src/test/java/libcore/java/security/
DProtectionDomainTest.java81 assertNull(domain.getPrincipals()); in testGetPrincipals()
/libcore/api/
Dcurrent.txt8439 method public final java.security.Principal[] getPrincipals();
19817 method public String[][] getPrincipals();
19828 method public java.util.Set<java.security.Principal> getPrincipals();
19829 method public <T extends java.security.Principal> java.util.Set<T> getPrincipals(Class<T>);