Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4487813

Don't compile Sample source in JAAS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 1.0
    • security-libs



      Name: krC82822 Date: 08/02/2001


      java version "1.3.0_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
      Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)

      SampleModule username: uu
      SampleModule password: pp
                      [SampleLoginModule] user entered username: uu
                      [SampleLoginModule] user entered password: pp
                      [SampleLoginModule] authentication succeeded
                      [SampleLoginModule] added SamplePrincipal to Subject
      Authenticated user has the following Principals:
              SamplePrincipal: uu
        User has 0 Public Credential(s)
              Principal: SamplePrincipal: uu

      java.lang.SecurityException: java.lang.reflect.InvocationTargetException
              at javax.security.auth.Subject$4.run(Subject.java:581)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.Subject.createContext(Subject.java:565)
              at javax.security.auth.Subject.doAs(Subject.java:378)
              at Sample.main(Sample.java:120)
      (Review ID: 124224)
      ======================================================================

            Unassigned Unassigned
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: