Edit C:\apache-tomcat-7.0.69\webapps\swordv2\WEB-INF\classes\org\dspace\sword2\SwordAuthenticator.class
???? 37 ?! "# "$ ?% &' &( ?) *+ *, ?- ./ .0 ?1 .2 ?3 .4 ?5 67 68 ?9:;<= !> ? ?@ ?ABCDE F G HI HJ HK LMNOP ?QR ST UVW XYZ 0![ 0\] 0^ _` Sab 8! ?c d 8e:fghijikl Am no 0p Sq 8r 8stutv 8w x Uyz{| }~?? S?? ? ??? ??? 8? 8???? ? 8? 8? ?? A? A?? gm ??g? 8?? l!??????g? o? ???????? x??? z? ?? ???O? g? g? ?? ?? ??? S?? log Lorg/apache/log4j/Logger; authenticationService 7Lorg/dspace/authenticate/service/AuthenticationService; authorizeService /Lorg/dspace/authorize/service/AuthorizeService; ePersonService +Lorg/dspace/eperson/service/EPersonService; communityService -Lorg/dspace/content/service/CommunityService; collectionService .Lorg/dspace/content/service/CollectionService; itemService (Lorg/dspace/content/service/ItemService; configurationService *Lorg/dspace/services/ConfigurationService; <init> ()V Code LineNumberTable LocalVariableTable this &Lorg/dspace/sword2/SwordAuthenticator; authenticates @(Lorg/dspace/core/Context;Ljava/lang/String;Ljava/lang/String;)Z context Lorg/dspace/core/Context; un Ljava/lang/String; pw auth I StackMapTable constructContext ()Lorg/dspace/core/Context; Exceptions authenticate G(Lorg/swordapp/server/AuthCredentials;)Lorg/dspace/sword2/SwordContext; sc Lorg/dspace/sword2/SwordContext; e Ljava/lang/Exception; %Lorg/swordapp/server/AuthCredentials;??=?b `(Lorg/dspace/core/Context;Lorg/swordapp/server/AuthCredentials;)Lorg/dspace/sword2/SwordContext; specialGroup Lorg/dspace/eperson/Group; specialGroups Ljava/util/List; oboContext epObo Lorg/dspace/eperson/EPerson; ep authenticated Z Ljava/sql/SQLException; obo mediated LocalVariableTypeTable ,Ljava/util/List<Lorg/dspace/eperson/Group;>;????? canSubmit j(Lorg/dspace/sword2/SwordContext;Lorg/dspace/content/DSpaceObject;Lorg/dspace/sword2/VerboseDescription;)Z swordContext dso !Lorg/dspace/content/DSpaceObject; msg &Lorg/dspace/sword2/VerboseDescription; submit isUserAdmin #(Lorg/dspace/sword2/SwordContext;)Z isOnBehalfOfAdmin onBehalfOf isUserInGroup =(Lorg/dspace/sword2/SwordContext;Lorg/dspace/eperson/Group;)Z group isOnBehalfOfInGroup isInGroup 9(Lorg/dspace/eperson/Group;Lorg/dspace/eperson/EPerson;)Z group1 eperson eps groups .Ljava/util/List<Lorg/dspace/eperson/EPerson;>; getAllowedCommunities 2(Lorg/dspace/sword2/SwordContext;)Ljava/util/List; authAllowed oboAllowed comm Lorg/dspace/content/Community; allowed comms 0Ljava/util/List<Lorg/dspace/content/Community;>;? Signature R(Lorg/dspace/sword2/SwordContext;)Ljava/util/List<Lorg/dspace/content/Community;>; getCommunities P(Lorg/dspace/sword2/SwordContext;Lorg/dspace/content/Community;)Ljava/util/List; community p(Lorg/dspace/sword2/SwordContext;Lorg/dspace/content/Community;)Ljava/util/List<Lorg/dspace/content/Community;>; getAllowedCollections S(Lorg/dspace/sword2/SwordContext;)Ljava/util/List<Lorg/dspace/content/Collection;>; col Lorg/dspace/content/Collection; authContext cols 1Ljava/util/List<Lorg/dspace/content/Collection;>;? q(Lorg/dspace/sword2/SwordContext;Lorg/dspace/content/Community;)Ljava/util/List<Lorg/dspace/content/Collection;>; getAllowedItems Q(Lorg/dspace/sword2/SwordContext;Lorg/dspace/content/Collection;)Ljava/util/List; bundle Lorg/dspace/content/Bundle; write add item Lorg/dspace/content/Item; bundles ii Ljava/util/Iterator; collection -Ljava/util/List<Lorg/dspace/content/Bundle;>; +Ljava/util/List<Lorg/dspace/content/Item;>; /Ljava/util/Iterator<Lorg/dspace/content/Item;>;? l(Lorg/dspace/sword2/SwordContext;Lorg/dspace/content/Collection;)Ljava/util/List<Lorg/dspace/content/Item;>; canSubmitTo B(Lorg/dspace/sword2/SwordContext;Lorg/dspace/content/Collection;)Z <(Lorg/dspace/sword2/SwordContext;Lorg/dspace/content/Item;)Z isObo allowContext allowedToMediate (Lorg/dspace/core/Context;)Z m mediator mediators [Ljava/lang/String; email netid D(Lorg/dspace/sword2/SwordContext;Lorg/dspace/content/DSpaceObject;)Z <clinit> SourceFile SwordAuthenticator.java ? ?????? ? ?????? ? ?????? ? ?????? ? ??? ? ??? ? ?????? ? ?? ?? ,org/dspace/authenticate/AuthenticationMethod org/dspace/core/Context session_id=0?? ? ? ? ? &org/dspace/sword2/DSpaceSwordException org/swordapp/server/SwordError java/lang/RuntimeException &org/swordapp/server/SwordAuthException??? ??????????? "swordv2-server.on-behalf-of.enable??? ? ? =Attempted mediated deposit on service not configured to do so????? ? 1Mediated deposit to this service is not permitted ?? sword_authenticate java/lang/StringBuilder username=?? ,on_behalf_of=??????? org/dspace/sword2/SwordContext ? ??????????????? org/dspace/eperson/Group Adding Special Group id=?? ?? ? &unable to identify on-behalf-of user: sword_unable_to_set_user 4Unable to authenticate with the supplied credentials ?? sword_unable_to_set_on_behalf_of -Unable to authenticate the onBehalfOf account java/sql/SQLException caught exception: ? :There was a problem accessing the repository user database ? *User is authorised to submit to collection? .User is not authorised to submit to collection? ? Caught exception: ??? ? ? ? org/dspace/eperson/EPerson ?! ? java/util/ArrayList"#$ org/dspace/content/Community org/dspace/core/Constants%&' ? ?()* org/dspace/content/Collection+,- org/dspace/content/Item. org/dspace/content/Bundle ORIGINAL/?? ,swordv2-server.on-behalf-of.update.mediators012?3?4? $org/dspace/sword2/SwordAuthenticator56 java/lang/Object #org/swordapp/server/AuthCredentials java/lang/Exception java/lang/String java/util/List java/util/Iterator :org/dspace/authenticate/factory/AuthenticateServiceFactory getInstance >()Lorg/dspace/authenticate/factory/AuthenticateServiceFactory; getAuthenticationService 9()Lorg/dspace/authenticate/service/AuthenticationService; 4org/dspace/authorize/factory/AuthorizeServiceFactory 8()Lorg/dspace/authorize/factory/AuthorizeServiceFactory; getAuthorizeService 1()Lorg/dspace/authorize/service/AuthorizeService; 0org/dspace/eperson/factory/EPersonServiceFactory 4()Lorg/dspace/eperson/factory/EPersonServiceFactory; getEPersonService -()Lorg/dspace/eperson/service/EPersonService; 0org/dspace/content/factory/ContentServiceFactory 4()Lorg/dspace/content/factory/ContentServiceFactory; getCommunityService /()Lorg/dspace/content/service/CommunityService; getCollectionService 0()Lorg/dspace/content/service/CollectionService; getItemService *()Lorg/dspace/content/service/ItemService; 1org/dspace/services/factory/DSpaceServicesFactory 5()Lorg/dspace/services/factory/DSpaceServicesFactory; getConfigurationService ,()Lorg/dspace/services/ConfigurationService; 5org/dspace/authenticate/service/AuthenticationService y(Lorg/dspace/core/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/http/HttpServletRequest;)I setExtraLogInfo (Ljava/lang/String;)V isValid ()Z abort getOnBehalfOf ()Ljava/lang/String; getUsername getPassword #org/apache/commons/lang/StringUtils isBlank (Ljava/lang/String;)Z (org/dspace/services/ConfigurationService getBooleanProperty (Ljava/lang/String;Z)Z org/apache/log4j/Logger error (Ljava/lang/Object;)V org/swordapp/server/UriRegistry ERROR_MEDIATION_NOT_ALLOWED '(Ljava/lang/String;Ljava/lang/String;)V append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString org/dspace/core/LogManager getHeader Q(Lorg/dspace/core/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; info getCurrentUser ()Lorg/dspace/eperson/EPerson; setAuthenticated (Lorg/dspace/eperson/EPerson;)V getSpecialGroups R(Lorg/dspace/core/Context;Ljavax/servlet/http/HttpServletRequest;)Ljava/util/List; iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; getID ()Ljava/util/UUID; setSpecialGroup (Ljava/util/UUID;)V -(Ljava/lang/Object;)Ljava/lang/StringBuilder; debug setAuthenticatorContext (Lorg/dspace/core/Context;)V setContext )org/dspace/eperson/service/EPersonService findByEmail I(Lorg/dspace/core/Context;Ljava/lang/String;)Lorg/dspace/eperson/EPerson; findByNetid setOnBehalfOf setCurrentUser ERROR_TARGET_OWNER_UNKNOWN *(Ljava/lang/Object;Ljava/lang/Throwable;)V *(Ljava/lang/String;Ljava/lang/Throwable;)V $org/dspace/sword2/VerboseDescription :(Ljava/lang/String;)Lorg/dspace/sword2/VerboseDescription; getAuthenticated getAuthenticatorContext -org/dspace/authorize/service/AuthorizeService isAdmin (Ljava/lang/Throwable;)V getOnBehalfOfContext getMembers ()Ljava/util/List; getMemberGroups java/util/UUID equals (Ljava/lang/Object;)Z isEmpty getContext +org/dspace/content/service/CommunityService findAllTop +(Lorg/dspace/core/Context;)Ljava/util/List; authorizeActionBoolean >(Lorg/dspace/core/Context;Lorg/dspace/content/DSpaceObject;I)Z getSubcommunities ,org/dspace/content/service/CollectionService findAuthorized J(Lorg/dspace/core/Context;Lorg/dspace/content/Community;I)Ljava/util/List; &org/dspace/content/service/ItemService findByCollection N(Lorg/dspace/core/Context;Lorg/dspace/content/Collection;)Ljava/util/Iterator; getBundles getName getArrayProperty '(Ljava/lang/String;)[Ljava/lang/String; getEmail getNetid trim getLogger ,(Ljava/lang/Class;)Lorg/apache/log4j/Logger; ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? K*? *? ? ? *? ? ? *? ? ? *? ? ? *? ? ? *? ? ? *? ? ? ? ? B 0 5 6 8 9 ; <