PK
sC4 META-INF/ PK
rC45j j META-INF/MANIFEST.MFManifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_03-b07 (Sun Microsystems Inc.)
PK
DP4 WEB-INF/PK
~4 WEB-INF/classes/PK
~4 WEB-INF/classes/petr/PK
4J
Index1.jsp<%@page contentType="text/html" session="false"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
JSP Page - testovací stránka ščřščř
<%
java.util.Enumeration enume = request.getAttributeNames();
while (enume.hasMoreElements()) {
String element = (String) enume.nextElement();
out.print(element+"
");
}
%>
RemoteAddress <%= request.getRemoteAddr() %>
Cer = <%= request.getAttribute("javax.servlet.request.X509Certificate") %>
VERZE 4 - JSP 1 !!
JSP Page
<%--
This example uses JSTL, uncomment the taglib directive above.
To test, display the page like this: index.jsp?sayHello=true&name=Murphy
--%>
<%--
Hello ${param.name}!
--%>
PK
sC4|ʖ
" WEB-INF/classes/petr/CDJAXWS.class 1
) G ( H I J K L M N O P
Q R S
T U V U W X Y
G
Z [
\ ] ^ C _
` a b c d e f g h i
j k l
m n o p q r context Ljavax/xml/ws/WebServiceContext; RuntimeVisibleAnnotations Ljavax/annotation/Resource; ()V Code LineNumberTable LocalVariableTable this Lpetr/CDJAXWS; hello3 &(Ljava/lang/String;)Ljava/lang/String; element Ljava/lang/String; name mc %Ljavax/xml/ws/handler/MessageContext; sr 'Ljavax/servlet/http/HttpServletRequest; attrs Ljava/lang/StringBuffer; enume Ljava/util/Enumeration; cert %[Ljava/security/cert/X509Certificate;
SourceFile CDJAXWS.java Ljavax/jws/WebService; . / * + s t u javax.xml.ws.servlet.request v w x %javax/servlet/http/HttpServletRequest java/lang/StringBuffer . y z { 9getAttributeNames() BEFORE getting a client certificate : | } ~ java/lang/String java/lang/StringBuilder | ; %javax.servlet.request.X509Certificate ;CERT509= !;CERT509=null nebo nulova delka ! :; getAttributeNames() AFTER getting a client certificate : )This is the return value from hello3 for from the address with the certificate :: |
; isSecure : | ; remoteUser :
; buffer= petr/CDJAXWS java/lang/Object javax/xml/ws/WebServiceContext getMessageContext '()Ljavax/xml/ws/handler/MessageContext; #javax/xml/ws/handler/MessageContext get &(Ljava/lang/Object;)Ljava/lang/Object; (Ljava/lang/String;)V getAttributeNames ()Ljava/util/Enumeration; append ,(Ljava/lang/String;)Ljava/lang/StringBuffer; java/util/Enumeration hasMoreElements ()Z nextElement ()Ljava/lang/Object; -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; getAttribute &(Ljava/lang/String;)Ljava/lang/Object; "java/security/cert/X509Certificate getIssuerDN ()Ljava/security/Principal; java/security/Principal getName
getRemoteAddr -(Ljava/lang/Object;)Ljava/lang/StringBuilder; isSecure (Z)Ljava/lang/StringBuilder;
getRemoteUser ! ( ) * + , - . / 0 / * 1 2 3 4 5 6 0 C* M, N Y :-
: W
, : Y W- : 0 * Y 2 W W-
: W
, : Y Wл Y + - !" - # $% - & ' ! 1 N
! ) 1 ; G a d " t # $ &