Home
last modified time | relevance | path

Searched refs:subject (Results 1 – 25 of 37) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/
DSubjectTest.java271 Subject subject = new Subject( in testSerialization_nullPrincipalsAllowed() local
273 SerializationTest.verifySelf(subject); in testSerialization_nullPrincipalsAllowed()
277 Subject subject = new Subject( in testSecureTest_removeAllNull_throwsException() local
280 subject.getPrincipals().removeAll(null); in testSecureTest_removeAllNull_throwsException()
287 Subject subject = new Subject( in testSecureTest_retainAllNull_throwsException() local
290 subject.getPrincipals().retainAll(null); in testSecureTest_retainAllNull_throwsException()
297 Subject subject = new Subject(); in getSerializationData() local
298 return new Object[] { subject, subject.getPrincipals(), in getSerializationData()
299 subject.getPrivateCredentials(), subject.getPublicCredentials() }; in getSerializationData()
/libcore/ojluni/src/main/java/java/security/
DPrincipal.java89 public default boolean implies(Subject subject) { in implies() argument
90 if (subject == null) in implies()
92 return subject.getPrincipals().contains(this); in implies()
DAuthProvider.java43 public abstract void login(Subject subject, CallbackHandler handler) in login() argument
/libcore/ojluni/src/main/java/javax/security/auth/
DSubject.java343 public static <T> T doAs(final Subject subject,
361 createContext(subject, currentAcc));
404 public static <T> T doAs(final Subject subject,
423 createContext(subject, currentAcc));
461 public static <T> T doAsPrivileged(final Subject subject,
484 createContext(subject, callerAcc));
527 public static <T> T doAsPrivileged(final Subject subject,
550 createContext(subject, callerAcc));
553 private static AccessControlContext createContext(final Subject subject,
560 if (subject == null)
[all …]
DSubjectDomainCombiner.java37 public SubjectDomainCombiner(Subject subject) { } in SubjectDomainCombiner() argument
/libcore/luni/src/test/java/libcore/java/security/
DPrincipalTest.java37 Subject subject = new Subject( in test_Principal_implies() local
43 assertTrue(principalA.implies(subject)); in test_Principal_implies()
45 assertFalse(principalC.implies(subject)); in test_Principal_implies()
DAuthProviderTest.java41 public void login(Subject subject, CallbackHandler handler) { in login() argument
/libcore/ojluni/src/main/java/sun/security/x509/
DX509CertInfo.java88 protected X500Name subject = null; field in X509CertInfo
294 if (subject == null || pubKey == null || interval == null in toString()
302 sb.append(" Subject: " + subject.toString() + "\n"); in toString()
499 subject = null; in delete()
557 return(subject); in get()
611 return getIssuer ? issuer : subject; in getX500Name()
614 : subject.asX500Principal(); in getX500Name()
659 subject = new X500Name(in); in parse()
661 subject.isEmpty()) { in parse()
706 verifyCert(subject, extensions); in parse()
[all …]
DCertificatePolicyMap.java49 CertificatePolicyId subject) { in CertificatePolicyMap() argument
51 this.subjectDomain = subject; in CertificatePolicyMap()
DNameConstraintsExtension.java434 X500Name subject = X500Name.asX500Name(subjectPrincipal); in verify() local
436 if (subject.isEmpty() == false) { in verify()
437 if (verify(subject) == false) { in verify()
466 return verifyRFC822SpecialCase(subject); in verify()
572 public boolean verifyRFC822SpecialCase(X500Name subject) throws IOException { in verifyRFC822SpecialCase() argument
573 for (AVA ava : subject.allAvas()) { in verifyRFC822SpecialCase()
DX509CertImpl.java908 Principal subject = (Principal)info.get(X509CertInfo.SUBJECT + DOT + in getSubjectDN() local
910 return subject; in getSubjectDN()
926 X500Principal subject = (X500Principal)info.get( in getSubjectX500Principal() local
929 return subject; in getSubjectX500Principal()
1944 X500Principal subject = cert.getSubjectX500Principal(); in isSelfIssued() local
1946 return subject.equals(issuer); in isSelfIssued()
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java208 .subject("CN=Test Root Certificate Authority") in initCerts()
215 .subject("CN=Test Intermediate Certificate Authority ECDSA") in initCerts()
223 .subject("CN=Test Intermediate Certificate Authority") in initCerts()
240 .subject("emailAddress=test-ec@user") in initCerts()
247 .subject("emailAddress=test-ec@user") in initCerts()
253 .subject("emailAddress=test@user") in initCerts()
259 .subject("CN=Test Root Certificate Authority 2") in initCerts()
264 .subject("CN=Test Intermediate Certificate Authority") in initCerts()
360 private X500Principal subject; field in TestKeyStore.Builder
377 subject = localhost(); in Builder()
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DPKIX.java238 X500Principal subject = sel.getSubject(); in getTargetSubject() local
239 if (subject != null) { in getTargetSubject()
240 return subject; in getTargetSubject()
244 subject = cert.getSubjectX500Principal(); in getTargetSubject()
246 if (subject != null) { in getTargetSubject()
247 return subject; in getTargetSubject()
DBuilder.java297 X500Name subject = X500Name.asX500Name(certImpl.getSubjectX500Principal()); in targetDistance() local
298 if (subject.equals(target)) { in targetDistance()
/libcore/ojluni/src/main/java/java/security/cert/
DX509CertSelector.java99 private X500Principal subject; field in X509CertSelector
294 public void setSubject(X500Principal subject) { in setSubject() argument
295 this.subject = subject; in setSubject()
319 subject = null; in setSubject()
321 subject = new X500Name(subjectDN).asX500Principal(); in setSubject()
342 subject = (subjectDN == null ? null : new X500Principal(subjectDN)); in setSubject()
1377 return subject; in getSubject()
1399 return (subject == null ? null : subject.getName()); in getSubjectAsString()
1422 return (subject == null ? null : subject.getEncoded()); in getSubjectAsBytes()
1825 if (subject != null) { in toString()
[all …]
/libcore/ojluni/
DNOTICE279 Oracle designates certain files in this repository as subject to the "Classpath" exception.
466 copy, distribute or modify the Program subject to these terms and conditions.
615 subject to the following clarification and special exception to the GPL, but
617 the words "Oracle designates this particular file as subject to the "Classpath"
648 particular file as subject to the "Classpath" exception as provided
674 particular file as subject to the "Classpath" exception as provided
700 particular file as subject to the "Classpath" exception as provided
726 particular file as subject to the "Classpath" exception as provided
752 particular file as subject to the "Classpath" exception as provided
778 particular file as subject to the "Classpath" exception as provided
[all …]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestCertUtils.java436 private X500Principal subject; field in TestCertUtils.TestX509Certificate
441 this.subject = subj; in TestX509Certificate()
450 return subject; in getSubjectX500Principal()
461 byte[] asubj = subject.getEncoded(); in getEncoded()
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/
DX509CertInfo.java107 sun.security.x509.X500Name subject, sun.security.x509.CertificateExtensions extensions) in verifyCert() argument
234 protected sun.security.x509.X500Name subject; field in X509CertInfo
/libcore/luni/
Dbouncycastle-license.txt9 permit persons to whom the Software is furnished to do so, subject to
/libcore/ojluni/src/main/resources/sun/util/logging/resources/
Dlogging_de.properties8 # particular file as subject to the "Classpath" exception as provided
Dlogging_es.properties8 # particular file as subject to the "Classpath" exception as provided
Dlogging_pt_BR.properties8 # particular file as subject to the "Classpath" exception as provided
Dlogging_sv.properties8 # particular file as subject to the "Classpath" exception as provided
Dlogging_fr.properties8 # particular file as subject to the "Classpath" exception as provided
/libcore/ojluni/src/main/resources/
Dcalendars.properties7 # particular file as subject to the "Classpath" exception as provided

12